Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure Host Collection '{{ host_collection_name }}' is {{ host_collection_state }}"
3 vars:
4 host_collection_name: "TheAnswer"
5 host_collection_description: "Foo host collection for Foo servers"
6 host_collection_state: present
7 host_collection_organization: "Test Organization"
8 host_collection:
9 username: "{{ foreman_username }}"
10 password: "{{ foreman_password }}"
11 server_url: "{{ foreman_server_url }}"
12 validate_certs: "{{ foreman_validate_certs }}"
13 name: "{{ host_collection_name }}"
14 updated_name: "{{ host_collection_updated_name | default(omit) }}"
15 description: "{{ host_collection_description }}"
16 organization: "{{ host_collection_organization }}"
17 state: "{{ host_collection_state }}"
18 register: result
19 - assert:
20 fail_msg: "Ensuring host collection is {{ host_collection_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
21 that:
22 - result.changed == expected_change
23 when: expected_change is defined
24 - include_tasks: _assert_diff.yml
25 vars:
26 module: host_collection
27 ...