fix vault password file handling
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2020-10-10 11:04:39 +02:00
parent 521ca1e9e6
commit 3e9fbc4ada
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -23,6 +23,7 @@ if [ -n "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
fi
if [ -n "${MOLECULE_ANSIBLE_VAULT_PASSWORD}" ]; then
printf "Write vault password file ...\n"
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 "$@"