servers/api/bin/docker-entrypoint.d/20-create-ansible-password-file.sh
2022-11-14 19:41:46 +01:00

8 lines
227 B
Bash
Executable File

#!/bin/sh
if [ -n "$ANSIBLE_VAULT_PASSWORD" ]; then
export ANSIBLE_VAULT_PASSWORD_FILE=/var/run/secrets/vault-password
echo "$ANSIBLE_VAULT_PASSWORD" > $ANSIBLE_VAULT_PASSWORD_FILE
unset ANSIBLE_VAULT_PASSWORD
fi