Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure Hostgroup {{ hostgroup_name }} is {{ hostgroup_state }} change {{ expected_change }}"
3 vars:
4 hostgroup_name: "test_hostgroup"
5 hostgroup_state: present
6 hostgroup:
7 username: "{{ foreman_username }}"
8 password: "{{ foreman_password }}"
9 server_url: "{{ foreman_server_url }}"
10 validate_certs: "{{ foreman_validate_certs }}"
11 name: "{{ hostgroup_name }}"
12 updated_name: "{{ hostgroup_updated_name | default(omit) }}"
13 parent: "{{ hostgroup_parent | default(omit) }}"
14 locations: "{{ hostgroup_locations | default(omit) }}"
15 organizations: "{{ hostgroup_organizations | default(omit) }}"
16 compute_resource: "{{ hostgroup_compute_resource | default(omit) }}"
17 compute_profile: "{{ hostgroup_compute_profile | default(omit) }}"
18 domain: "{{ hostgroup_domain | default(omit) }}"
19 subnet: "{{ hostgroup_subnet | default(omit) }}"
20 subnet6: "{{ hostgroup_subnet6 | default(omit) }}"
21 realm: "{{ hostgroup_realm | default(omit) }}"
22 description: "{{ hostgroup_description | default(omit) }}"
23 architecture: "{{ hostgroup_architecture | default(omit) }}"
24 operatingsystem: "{{ hostgroup_operatingsystem | default(omit) }}"
25 medium: "{{ hostgroup_installation_medium | default(omit) }}"
26 ptable: "{{ hostgroup_ptable | default(omit) }}"
27 pxe_loader: "{{ hostgroup_pxe_loader | default(omit) }}"
28 root_pass: "{{ hostgroup_root_pass | default(omit) }}"
29 environment: "{{ hostgroup_environment | default(omit) }}"
30 config_groups: "{{ hostgroup_config_groups | default(omit) }}"
31 puppet_proxy: "{{ hostgroup_puppet_proxy | default(omit) }}"
32 puppet_ca_proxy: "{{ hostgroup_puppet_ca_proxy | default(omit) }}"
33 puppetclasses: "{{ hostgroup_puppetclasses | default(omit) }}"
34 openscap_proxy: "{{ hostgroup_openscap_proxy | default(omit) }}"
35 organization: "{{ hostgroup_organization | default(omit) }}"
36 content_source: "{{ hostgroup_content_source | default(omit) }}"
37 lifecycle_environment: "{{ hostgroup_lifecycle_environment | default(omit) }}"
38 content_view: "{{ hostgroup_content_view | default(omit) }}"
39 ansible_roles: "{{ hostgroup_ansible_roles | default(omit) }}"
40 parameters: "{{ hostgroup_parameters | default(omit) }}"
41 activation_keys: "{{ hostgroup_activation_keys | default(omit) }}"
42 state: "{{ hostgroup_state }}"
43 register: result
44 - assert:
45 fail_msg: "Ensuring hostgroup is {{ hostgroup_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
46 that:
47 - result.changed == expected_change
48 when: expected_change is defined
49 ...