Set ask_vault_pass in ansible.cfg
This commit is contained in:
parent
90946f8761
commit
03921cfcac
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue