Browse Source

fix vault password file handling

tags/v3.0.8-5
Robert Kaussow 1 month ago
parent
commit
3e9fbc4ada
Signed by: xoxys GPG Key ID: 65362AE74AF98B61
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      overlay/bin/molecule

+ 1
- 0
overlay/bin/molecule 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 "$@"


Loading…
Cancel
Save