Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure environment '{{ environment_name }}' is '{{ environment_state }}' }}'"
3 vars:
4 environment_name: "Testing"
5 environment_locations:
6 - "Test Location"
7 environment_organizations:
8 - "Test Organization"
9 puppet_environment:
10 username: "{{ foreman_username }}"
11 password: "{{ foreman_password }}"
12 server_url: "{{ foreman_server_url }}"
13 validate_certs: "{{ foreman_validate_certs }}"
14 name: "{{ environment_name }}"
15 locations: "{{ environment_locations }}"
16 organizations: "{{ environment_organizations }}"
17 state: "{{ environment_state }}"
18 register: result
19 - assert:
20 fail_msg: "Ensuring environment is {{ environment_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
21 that:
22 - result.changed == expected_change
23 when: expected_change is defined
24 ...