Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/tasks/subnet.yml

raw symbols SCIP
1 ---
2 - name: "Ensure subnet '{{ subnet_name }}' is {{ subnet_state }}"
3 vars:
4 subnet_name: "Test Subnet"
5 subnet_network: '192.168.200.0'
6 subnet_state: present
7 subnet:
8 username: "{{ foreman_username }}"
9 password: "{{ foreman_password }}"
10 server_url: "{{ foreman_server_url }}"
11 validate_certs: "{{ foreman_validate_certs }}"
12 name: "{{ subnet_name }}"
13 description: "{{ subnet_description | default(omit) }}"
14 updated_name: "{{ subnet_updated_name | default(omit) }}"
15 network_type: "{{ subnet_network_type | default(omit) }}"
16 dns_primary: "{{ subnet_dns_primary | default(omit) }}"
17 dns_secondary: "{{ subnet_dns_secondary | default(omit) }}"
18 domains: "{{ subnet_domains | default(omit) }}"
19 gateway: "{{ subnet_gateway | default(omit) }}"
20 network: "{{ subnet_network }}"
21 cidr: "{{ subnet_cidr | default(omit) }}"
22 mask: "{{ subnet_mask | default(omit) }}"
23 from_ip: "{{ subnet_from | default(omit) }}"
24 to_ip: "{{ subnet_to | default(omit) }}"
25 boot_mode: "{{ subnet_boot_mode | default(omit) }}"
26 ipam: "{{ subnet_ipam | default(omit) }}"
27 dhcp_proxy: "{{ subnet_dhcp_proxy | default(omit) }}"
28 httpboot_proxy: "{{ subnet_httpboot_proxy | default(omit) }}"
29 tftp_proxy: "{{ subnet_tftp_proxy | default(omit) }}"
30 discovery_proxy: "{{ subnet_discovery_proxy | default(omit) }}"
31 dns_proxy: "{{ subnet_dns_proxy | default(omit) }}"
32 remote_execution_proxies: "{{ subnet_remote_execution_proxies | default(omit) }}"
33 vlanid: "{{ subnet_vlanid | default(omit) }}"
34 mtu: "{{ subnet_mtu | default(omit) }}"
35 organizations: "{{ subnet_organizations | default(omit) }}"
36 locations: "{{ subnet_locations | default(omit) }}"
37 parameters: "{{ subnet_parameters | default(omit) }}"
38 state: "{{ subnet_state }}"
39 register: result
40 - assert:
41 fail_msg: "Ensuring subnet is {{ subnet_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
42 that:
43 - result.changed == expected_change
44 when: expected_change is defined
45 ...