Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/auth_source_ldap.yml

raw symbols SCIP
1 ---
2 - hosts: localhost
3 collections:
4 - theforeman.foreman
5 gather_facts: false
6 vars_files:
7 - vars/server.yml
8 - vars/domain.yml
9 tasks:
10 - include_tasks: tasks/auth_source_ldap.yml
11 vars:
12 auth_source_ldap_state: absent
13 - include_tasks: tasks/location.yml
14 vars:
15 location_name: "{{ item }}"
16 location_state: "present"
17 with_items: "{{ domain_locations }}"
18 - include_tasks: tasks/organization.yml
19 vars:
20 organization_name: "{{ item }}"
21 organization_state: "present"
22 with_items: "{{ domain_organizations }}"
23
24 - hosts: tests
25 collections:
26 - theforeman.foreman
27 gather_facts: false
28 vars_files:
29 - vars/server.yml
30 tasks:
31 - include_tasks: tasks/auth_source_ldap.yml
32 vars:
33 auth_source_ldap_state: present
34 # we only set this once at creation, as otherwise idempotency tests would fail
35 auth_source_ldap_account_password: "{{ default_auth_source_ldap_account_password }}"
36 expected_change: true
37 - include_tasks: tasks/auth_source_ldap.yml
38 vars:
39 auth_source_ldap_state: present
40 expected_change: false
41 - include_tasks: tasks/auth_source_ldap.yml
42 vars:
43 auth_source_ldap_state: present
44 auth_source_ldap_account: test
45 expected_change: true
46 - include_tasks: tasks/auth_source_ldap.yml
47 vars:
48 auth_source_ldap_state: present
49 auth_source_ldap_netgroups: true
50 expected_change: true
51 - include_tasks: tasks/auth_source_ldap.yml
52 vars:
53 auth_source_ldap_state: present
54 auth_source_ldap_netgroups: true
55 expected_change: false
56 - include_tasks: tasks/auth_source_ldap.yml
57 vars:
58 auth_source_ldap_state: absent
59 expected_change: true
60 - include_tasks: tasks/auth_source_ldap.yml
61 vars:
62 auth_source_ldap_state: absent
63 expected_change: false
64
65 - hosts: localhost
66 collections:
67 - theforeman.foreman
68 gather_facts: false
69 vars_files:
70 - vars/server.yml
71 - vars/domain.yml
72 tasks:
73 - include_tasks: tasks/location.yml
74 vars:
75 location_name: "{{ item }}"
76 location_state: "absent"
77 with_items: "{{ domain_locations | reverse | list }}"
78 - include_tasks: tasks/organization.yml
79 vars:
80 organization_name: "{{ item }}"
81 organization_state: "absent"
82 with_items: "{{ domain_organizations }}"
83 ...