Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure location '{{ location_name }}' is {{ location_state }}"
3 vars:
4 location_name: "Test Location"
5 location:
6 username: "{{ foreman_username }}"
7 password: "{{ foreman_password }}"
8 server_url: "{{ foreman_server_url }}"
9 validate_certs: "{{ foreman_validate_certs }}"
10 name: "{{ location_name }}"
11 description: "{{ location_description | default(omit) }}"
12 parent: "{{ location_parent | default(omit) }}"
13 organizations: "{{ location_organizations | default(omit) }}"
14 parameters: "{{ location_parameters | default(omit) }}"
15 state: "{{ location_state }}"
16 register: result
17 ignore_errors: "{{ expected_error is defined and expected_error }}"
18 - assert:
19 fail_msg: "Ensuring location is {{ location_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
20 that:
21 - result.changed == expected_change
22 when: expected_change is defined
23 - assert:
24 fail_msg: "Ensuring location is {{ location_state }} did fail! (expected_error: {{ expected_error | default('unknown') }})"
25 that:
26 - result is failed
27 when:
28 - expected_error is defined
29 - expected_error
30 ...