From ab60789665d92881a9e3feec1885f1d4af4ac945 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 4 Feb 2024 21:31:15 +0100 Subject: [PATCH] fix: call variable vault_addr instead localhost --- tasks/init.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/init.yml b/tasks/init.yml index 3db57f1..196f58e 100644 --- a/tasks/init.yml +++ b/tasks/init.yml @@ -33,7 +33,7 @@ - name: Initialise Vault operator ansible.builtin.shell: vault operator init -key-shares=1 -key-threshold=1 -format json environment: - VAULT_ADDR: "http://127.0.0.1:8200" + VAULT_ADDR: "{{ vault_api_addr }}" register: vault_init_results run_once: true when: check_result.status == 501