Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure compute_profile '{{ compute_profile_name }}' is {{ compute_profile_state }}"
3 vars:
4 compute_profile_name: "Test Compute Profile"
5 compute_profile_state: "present"
6 compute_profile:
7 username: "{{ foreman_username }}"
8 password: "{{ foreman_password }}"
9 server_url: "{{ foreman_server_url }}"
10 validate_certs: "{{ foreman_validate_certs }}"
11 name: "{{ compute_profile_name }}"
12 compute_attributes: "{{ compute_profile_attributes | default(omit) }}"
13 state: "{{ compute_profile_state }}"
14 register: result
15 - assert:
16 fail_msg: "Ensuring compute profile is {{ compute_profile_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
17 that:
18 - result.changed == expected_change
19 when: expected_change is defined
20 - include_tasks: _assert_diff.yml
21 vars:
22 module: compute_profile
23 ...