Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Setup
3 hosts: localhost
4 collections:
5 - theforeman.foreman
6 gather_facts: false
7 vars_files:
8 - vars/server.yml
9 tasks:
10 - name: ensure test organization
11 include_tasks: tasks/organization.yml
12 vars:
13 organization_name: "Test Organization"
14 organization_state: "present"
15 - name: ensure test location
16 include_tasks: tasks/location.yml
17 vars:
18 location_name: "Test Location"
19 location_state: present
20 - name: ensure test domain
21 include_tasks: tasks/domain.yml
22 vars:
23 domain_organizations:
24 - Test Organization
25 domain_locations:
26 - Test Location
27 domain_name: foo.example.com
28 domain_state: present
29 - include_tasks: tasks/subnet.yml
30 vars:
31 subnet_name: "My subnet"
32 subnet_state: "absent"
33
34 - name: Tests
35 hosts: tests
36 collections:
37 - theforeman.foreman
38 gather_facts: false
39 vars_files:
40 - vars/server.yml
41 roles:
42 - role: subnets
43 vars:
44 foreman_subnets:
45 - name: "My subnet"
46 description: "My description"
47 network: "192.168.0.0"
48 mask: "255.255.255.192"
49 gateway: "192.168.0.1"
50 from_ip: "192.168.0.2"
51 to_ip: "192.168.0.42"
52 boot_mode: "Static"
53 vlanid: 452
54 mtu: 9000
55 domains:
56 - "foo.example.com"
57 organizations:
58 - Test Organization
59 locations:
60 - Test Location
61
62 - name: Cleanup
63 hosts: localhost
64 collections:
65 - theforeman.foreman
66 gather_facts: false
67 vars_files:
68 - vars/server.yml
69 tasks:
70 - include_tasks: tasks/subnet.yml
71 vars:
72 subnet_name: "My subnet"
73 subnet_mask: "255.255.255.192"
74 subnet_network: '192.168.0.0'
75 subnet_domains: []
76 - include_tasks: tasks/subnet.yml
77 vars:
78 subnet_name: "My subnet"
79 subnet_state: "absent"
80 - include_tasks: tasks/domain.yml
81 vars:
82 domain_name: "foo.example.com"
83 domain_state: "absent"
84 - include_tasks: tasks/organization.yml
85 vars:
86 organization_name: "Test Organization"
87 organization_state: absent
88 - include_tasks: tasks/location.yml
89 vars:
90 location_name: "Test Location"
91 location_state: absent