Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure ptable '{{ ptable_name }}' is '{{ ptable_state }}' and locked state is '{{ locked_state | default('undefined') }}'"
3 vars:
4 ptable_name: "Timetravel finish"
5 ptable_locations:
6 - "Test Location"
7 ptable_organizations:
8 - "Test Organization"
9 ptable_layout: |
10 <%#
11 name: A Partition Template
12 %>
13 zerombr
14 clearpart --all --initlabel
15 autopart
16 partition_table:
17 username: "{{ foreman_username }}"
18 password: "{{ foreman_password }}"
19 server_url: "{{ foreman_server_url }}"
20 validate_certs: "{{ foreman_validate_certs }}"
21 name: "{{ ptable_name }}"
22 updated_name: "{{ ptable_updated_name | default(omit) }}"
23 locations: "{{ ptable_locations }}"
24 organizations: "{{ ptable_organizations }}"
25 os_family: "{{ ptable_os_family | default(omit) }}"
26 locked: "{{ locked_state | default(omit) }}"
27 layout: "{{ ptable_layout }}"
28 state: "{{ ptable_state }}"
29 register: result
30 - assert:
31 fail_msg: "Ensuring ptable is {{ ptable_state }} and locked state {{ locked_state | default ('undefined') }} failed! (expected_change: {{ expected_change | default('unknown') }})"
32 that:
33 - result.changed == expected_change
34 when: expected_change is defined
35 ...