fix vault password file handling
This commit is contained in:
parent
521ca1e9e6
commit
3e9fbc4ada
@ -23,6 +23,7 @@ if [ -n "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" ]; then
|
if [ -n "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" ]; then
|
||||||
|
printf "Write vault password file ...\n"
|
||||||
MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE=/root/.vaultpasswd
|
MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE=/root/.vaultpasswd
|
||||||
echo "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" > $MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE
|
echo "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" > $MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE
|
||||||
exec env ANSIBLE_VAULT_PASSWORD_FILE=$MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE /usr/local/bin/molecule "$@"
|
exec env ANSIBLE_VAULT_PASSWORD_FILE=$MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE /usr/local/bin/molecule "$@"
|
||||||
|
Reference in New Issue
Block a user