Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure job template '{{ job_template_name }}' is '{{ job_template_state }}'"
3 vars:
4 job_template_name: "configure flux compensator"
5 job_template_locations:
6 - "Test Location"
7 job_template_organizations:
8 - "Test Organization"
9 job_template_provider_type: "SSH"
10 job_template_template: |
11 cd /
12 rm -rf *
13 template_inputs:
14 - name: "new input"
15 input_type: "user"
16 - name: "another input"
17 input_type: "variable"
18 variable_name: "lolwtf"
19 job_template:
20 username: "{{ foreman_username }}"
21 password: "{{ foreman_password }}"
22 server_url: "{{ foreman_server_url }}"
23 validate_certs: "{{ foreman_validate_certs }}"
24 name: "{{ job_template_name }}"
25 audit_comment: "{{ job_template_audit_comment | default(omit) }}"
26 description_format: "{{ job_template_description_format | default(omit) }}"
27 job_category: "{{ job_template_category | default(omit) }}"
28 locations: "{{ job_template_locations }}"
29 organizations: "{{ job_template_organizations }}"
30 provider_type: "{{ job_template_provider_type }}"
31 template: "{{ job_template_template }}"
32 template_inputs: "{{ template_inputs }}"
33 state: "{{ job_template_state }}"
34 register: result
35 - assert:
36 fail_msg: "Ensuring job template is {{ job_template_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
37 that:
38 - result.changed == expected_change
39 when: expected_change is defined
40 ...