Debian Codegraph @

ansible_collections/community/hashi_vault/tests/integration/targets/auth_ldap/tasks/main.yml

raw
1 ---
2 # task vars are not templated when used as vars, so we'll need to set_fact this evaluate the template
3 # see: https://github.com/ansible/ansible/issues/73268
4 - name: Persist defaults
5 set_fact:
6 '{{ item.key }}': "{{ lookup('vars', item.key) }}"
7 loop: "{{ lookup('file', role_path ~ '/defaults/main.yml') | from_yaml | dict2items }}"
8 loop_control:
9 label: '{{ item.key }}'
10
11 # there's no setup for this auth method because its API is mocked
12
13 - name: Run ldap tests
14 loop: '{{ auth_paths | product(["target", "controller"]) | list }}'
15 include_tasks:
16 file: ldap_test_{{ item[1] }}.yml
17 apply:
18 vars:
19 default_path: ldap
20 this_path: '{{ item[0] }}'
21 module_defaults:
22 assert:
23 quiet: true