fix vault password file handling
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Robert Kaussow 2020-10-10 11:03:48 +02:00
parent 43be014317
commit 521ca1e9e6
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -25,6 +25,7 @@ fi
if [ -n "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" ]; then
MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE=/root/.vaultpasswd
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
exec env ANSIBLE_VAULT_PASSWORD_FILE=$MOLECULE_ANSIBLE_VAULT_PASSWORD_FILE /usr/local/bin/molecule "$@"