Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure Snapshot '{{ snapshot_name }}' is {{ snapshot_state }} change {{ expected_change }} "
3 vars:
4 snapshot_name: "ansible"
5 snapshot_state: present
6 snapshot:
7 username: "{{ foreman_username }}"
8 password: "{{ foreman_password }}"
9 server_url: "{{ foreman_server_url }}"
10 validate_certs: "{{ foreman_validate_certs }}"
11 name: "{{ snapshot_name }}"
12 description: "{{ snapshot_description | default(omit) }}"
13 host: "{{ snapshot_host_name }}"
14 state: "{{ snapshot_state }}"
15 register: result
16 - fail:
17 msg: "Ensuring snapshot is {{ snapshot_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
18 when: (expected_change is defined) and (result.changed != expected_change)
19 ...