Debian Codegraph @

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

raw symbols SCIP
1 theforeman.foreman.locations
2 ===================================
3
4 This role creates and manages locations.
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_locations`. Each `location` requires the following fields:
12
13 - `name`: The name of the location.
14
15 For all other fields, see the `location` module.
16
17 Example Playbook
18 ----------------
19
20 Create the 'UK' location and set its parent to EMEA.
21
22 ```yaml
23 - hosts: localhost
24 roles:
25 - role: theforeman.foreman.locations
26 vars:
27 foreman_server_url: https://foreman.example.com
28 foreman_username: "admin"
29 foreman_password: "changeme"
30 foreman_locations:
31 - name: UK
32 organisations:
33 - RedHat
34 parent: EMEA
35 parameters:
36 - name: system_location
37 value: UK
38 state: present
39 ```