Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure lifecycle environment '{{ lifecycle_environment_name }}' is {{ lifecycle_environment_state }}"
3 vars:
4 lifecycle_environment_name: "Dev"
5 organization_name: "Test Organization"
6 lifecycle_environment:
7 username: "{{ foreman_username }}"
8 password: "{{ foreman_password }}"
9 server_url: "{{ foreman_server_url }}"
10 validate_certs: "{{ foreman_validate_certs }}"
11 name: "{{ lifecycle_environment_name }}"
12 label: "{{ lifecycle_environment_label | default(omit) }}"
13 organization: "{{ organization_name }}"
14 description: "{{ lifecycle_environment_description | default(omit) }}"
15 prior: "{{ lifecycle_environment_prior | default(omit) }}"
16 state: "{{ lifecycle_environment_state | default(omit) }}"
17 register: result
18 - assert:
19 fail_msg: "Ensuring lifecycle environment is {{ lifecycle_environment_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
20 that:
21 - result.changed == expected_change
22 when: expected_change is defined
23 ...