Debian Codegraph @

ansible_collections/theforeman/foreman/roles/organizations/README.md

raw symbols SCIP
1 theforeman.foreman.organizations
2 ================================
3
4 This role creates and manages organizations.
5
6 Role Variables
7 --------------
8
9 This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
10
11 The main data structure for this role is the list of `foreman_organizations`. Each `organization` requires the following fields:
12
13 - `name`: The name of the organization.
14
15 The following fields are optional in the sense that the server will use default values when they are omitted:
16
17 - `label`: The label of the organization.
18 - `description`: The description of the organization.
19 - `state`: The state of the organization. Can be `present` or `absent`.
20
21 Additionally you can pass any other parameters accepted by the `organization` module.
22
23 Example Playbooks
24 -----------------
25
26 ```yaml
27 ---
28 - name: add organizations to foreman
29 hosts: localhost
30 gather_facts: false
31 roles:
32 - role: theforeman.foreman.organizations
33 vars:
34 foreman_server_url: https://foreman.example.com
35 foreman_username: admin
36 foreman_password: changeme
37 foreman_organizations:
38 - name: raleigh
39 label: rdu
40 state: present
41 - name: default
42 label: boring
43 state: absent
44 - name: lanai
45 description: pacific datacenter
46 ```