Debian Codegraph @

ansible_collections/community/hashi_vault/tests/integration/targets/auth_none/tasks/controller.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 # TODO: consider setting up a Vault agent in CI to provide a better test of the none method
12 - name: "Perform a login with 'none' auth type"
13 set_fact:
14 status: "{{ lookup('vault_test_auth') }}"
15
16 - name: "Assert no login information is returned"
17 assert:
18 that:
19 - status.login == None