Set ask_vault_pass in ansible.cfg

This commit is contained in:
Sam A. 2023-12-23 18:04:31 +01:00
parent 90946f8761
commit 03921cfcac
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
[defaults] [defaults]
ask_vault_pass = True
remote_user = ubuntu remote_user = ubuntu
remote_tmp = /tmp/.ansible remote_tmp = /tmp/.ansible
inventory = inventory inventory = inventory

View file

@ -22,7 +22,7 @@ install_modules() {
fi fi
} }
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass --ask-become-pass" BASE_CMD="ansible-playbook playbook.yml --ask-become-pass"
cd "$(dirname "$0")" || exit 255 cd "$(dirname "$0")" || exit 255
if [ "$1" = "--dry" ]; then if [ "$1" = "--dry" ]; then