Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Create/update katello activation key"
3 vars:
4 activation_key_name: "Test Activation Key"
5 activation_key_state: "present"
6 activation_key_organization: "Test Organization"
7 activation_key:
8 username: "{{ foreman_username }}"
9 password: "{{ foreman_password }}"
10 server_url: "{{ foreman_server_url }}"
11 validate_certs: "{{ foreman_validate_certs }}"
12 name: "{{ activation_key_name }}"
13 new_name: "{{ activation_key_new_name | default(omit) }}"
14 organization: "{{ activation_key_organization }}"
15 lifecycle_environment: "{{ activation_key_lifecycle_environment | default(omit) }}"
16 content_view: "{{ activation_key_content_view | default(omit) }}"
17 content_view_environments: "{{ activation_key_content_view_environments | default(omit) }}"
18 host_collections: "{{ activation_key_host_collections | default(omit) }}"
19 release_version: "{{ activation_key_release_version | default(omit) }}"
20 service_level: "{{ activation_key_service_level | default(omit) }}"
21 max_hosts: "{{ activation_key_max_hosts | default(omit) }}"
22 unlimited_hosts: "{{ activation_key_unlimited_hosts | default(omit) }}"
23 purpose_usage: "{{ activation_key_purpose_usage | default(omit) }}"
24 purpose_role: "{{ activation_key_purpose_role | default(omit) }}"
25 purpose_addons: "{{ activation_key_purpose_addons | default(omit) }}"
26 content_overrides: "{{ activation_key_content_overrides | default(omit) }}"
27 state: "{{ activation_key_state }}"
28 register: result
29 - assert:
30 fail_msg: "Creating/updating activation key failed! (expected_change: {{ expected_change | default('unknown') }})"
31 that:
32 - result.changed == expected_change
33 when: expected_change is defined
34 - include_tasks: _assert_diff.yml
35 vars:
36 module: activation_key
37 ...