#!/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