Debian Codegraph @

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

raw
1 # Copyright (c) 2024 Michael Woodham ([email protected])
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 ---
5 # task vars are not templated when used as vars, so we'll need to set_fact this evaluate the template
6 # see: https://github.com/ansible/ansible/issues/73268
7 - name: Persist defaults
8 set_fact:
9 '{{ item.key }}': "{{ lookup('vars', item.key) }}"
10 loop: "{{ lookup('file', role_path ~ '/defaults/main.yml') | from_yaml | dict2items }}"
11 loop_control:
12 label: '{{ item.key }}'
13
14 # there's no setup for this auth method because its API is mocked
15
16 - name: Run GCP tests
17 loop: '{{ auth_paths | product(["target", "controller"]) | list }}'
18 include_tasks:
19 file: gcp_test_{{ item[1] }}.yml
20 apply:
21 vars:
22 default_path: gcp
23 this_path: '{{ item[0] }}'
24 module_defaults:
25 assert:
26 quiet: true