Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/domains_role.yml

raw symbols SCIP
1 ---
2 - hosts: localhost
3 collections:
4 - theforeman.foreman
5 gather_facts: false
6 vars_files:
7 - vars/server.yml
8 tasks:
9 - name: ensure test organization
10 include_tasks: tasks/organization.yml
11 vars:
12 organization_name: "Test Organization"
13 organization_state: "present"
14 - name: ensure test location
15 include_tasks: tasks/location.yml
16 vars:
17 location_name: "Test Location"
18 location_state: present
19 - include_tasks: tasks/domain.yml
20 vars:
21 domain_name: "example.org"
22 domain_state: "absent"
23
24 - hosts: tests
25 collections:
26 - theforeman.foreman
27 gather_facts: false
28 vars_files:
29 - vars/server.yml
30 roles:
31 - role: domains
32 vars:
33 foreman_domains:
34 - name: "example.org"
35 description: 'Example Domain'
36 organizations:
37 - Test Organization
38 locations:
39 - Test Location
40 state: present
41 expected_change: true
42
43 - hosts: localhost
44 collections:
45 - theforeman.foreman
46 gather_facts: false
47 vars_files:
48 - vars/server.yml
49 tasks:
50 - include_tasks: tasks/organization.yml
51 vars:
52 organization_name: "Test Organization"
53 organization_state: absent
54 - include_tasks: tasks/location.yml
55 vars:
56 location_name: "Test Location"
57 location_state: absent
58 - include_tasks: tasks/domain.yml
59 vars:
60 domain_name: "example.org"
61 domain_state: "absent"