Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure role '{{ role_name }}' is {{ role_state }}"
3 vars:
4 role_name: test
5 role_description: test role
6 role_locations:
7 - Test Location
8 role_organizations:
9 - Test Organization
10 role_state: present
11 role:
12 username: "{{ foreman_username }}"
13 password: "{{ foreman_password }}"
14 server_url: "{{ foreman_server_url }}"
15 validate_certs: "{{ foreman_validate_certs }}"
16 name: "{{ role_name }}"
17 description: "{{ role_description }}"
18 locations: "{{ role_locations }}"
19 organizations: "{{ role_organizations }}"
20 filters: "{{ role_filters | default(omit) }}"
21 state: "{{ role_state }}"
22 register: result
23 - assert:
24 fail_msg: "Ensuring role is {{ role_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
25 that:
26 - result.changed == expected_change
27 when: expected_change is defined
28 ...