fix vault password file handling
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
43be014317
commit
521ca1e9e6
@ -25,6 +25,7 @@ fi
|
|||||||
if [ -n "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" ]; then
|
if [ -n "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" ]; then
|
||||||
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 "$@"
|
||||||
|
else
|
||||||
|
exec /usr/local/bin/molecule "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec env ANSIBLE_VAULT_PASSWORD_FILE=$MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE /usr/local/bin/molecule "$@"
|
|
||||||
|
Reference in New Issue
Block a user