From d5fe8bc1ecc4ad7cd9b26a9c44c5f80780b3f0af Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 27 Oct 2024 23:33:30 +0100 Subject: [PATCH] Fix retrieve secrets on Ansible controller. --- launch_role.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/launch_role.yml b/launch_role.yml index eb6eef3..594e7a5 100644 --- a/launch_role.yml +++ b/launch_role.yml @@ -2,6 +2,10 @@ hosts: localhost gather_facts: false tasks: + - name: Include retrieve_secret_vars tasks + ansible.builtin.include_tasks: + file: "tasks/retrieve_secret_vars.yml" + - name: add target to temp inventory ansible.builtin.add_host: name: "{{ target_name }}" @@ -21,11 +25,6 @@ - name: Gather facts ansible.builtin.setup: - - name: Include retrieve_secret_vars tasks - ansible.builtin.include_tasks: - file: "tasks/retrieve_secret_vars.yml" - delegate_to: localhost - - name: Include retrieve_secret_vars tasks ansible.builtin.include_tasks: file: "tasks/retrieve_secret_vars.yml"