Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Create/Update/Delete Webhook"
3 vars:
4 webhook_state: "present"
5 webhook:
6 username: "{{ foreman_username }}"
7 password: "{{ foreman_password }}"
8 server_url: "{{ foreman_server_url }}"
9 validate_certs: "{{ foreman_validate_certs }}"
10 name: "{{ webhook_name }}"
11 target_url: "{{ webhook_target_url | default(omit)}}"
12 http_method: "{{ webhook_http_method | default(omit) }}"
13 http_content_type: "{{ webhook_http_content_type | default(omit) }}"
14 event: "{{ webhook_event | default(omit) }}"
15 webhook_template: "{{ webhook_template | default(omit) }}"
16 enabled: "{{ webhook_enabled | default(true) }}"
17 verify_ssl: "{{ webhook_verify_ssl | default(omit) }}"
18 ssl_ca_certs: "{{ webhook_ssl_ca_certs | default(omit) }}"
19 webhook_username: "{{ webhook_username | default(omit) }}"
20 webhook_password: "{{ webhook_password | default(omit) }}"
21 http_headers: "{{ webhook_http_headers | default(omit) }}"
22 proxy_authorization: "{{ webhook_proxy_authorization | default(omit) }}"
23 locations: "{{ webhook_locations | default(omit) }}"
24 organizations: "{{ webhook_organizations | default(omit) }}"
25 state: "{{ webhook_state }}"
26 register: result
27 - assert:
28 fail_msg: "Ensuring webhook is {{ webhook_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
29 that:
30 - result.changed == expected_change
31 when: expected_change is defined
32 ...