From 6c53d14d5ca8d238fbb99d54d251e487a18efc2a Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 16 Dec 2022 09:43:23 +0100 Subject: [PATCH] Move vault password file invocation from Makefile to ansible.cfg --- Makefile | 4 ++-- ansible.cfg | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd81fc9..a8e01f8 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ previous_tags=$(shell cat .roles_played | tr '\n' ',') %: - ansible-playbook playbook.yml --ask-become-pass -t $@ --vault-password-file=get-vault-password.sh + ansible-playbook playbook.yml --ask-become-pass -t $@ @echo $@ | grep -v all >> .roles_played @cat .roles_played | sort | uniq > temp && mv temp .roles_played previous: - ansible-playbook playbook.yml --ask-become-pass -t '${previous_tags}' --vault-password-file=get-vault-password.sh + ansible-playbook playbook.yml --ask-become-pass -t '${previous_tags}' diff --git a/ansible.cfg b/ansible.cfg index 3a0fbf1..cb14a81 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,4 @@ [defaults] +vault_password_file = get-vault-password.sh stdout_callback = yaml inventory = inventory.ini