diff options
-rw-r--r-- | .settings.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.settings.sh b/.settings.sh index 9967ba6..020dcbd 100644 --- a/.settings.sh +++ b/.settings.sh @@ -3,6 +3,8 @@ basedir=$(dirname "$_") basedir=$(cd "$basedir" && pwd) +export ANSIBLE_CONFIG=$basedir/ansible/ansible.cfg + echo "Adding bin/ to path" PATH="$basedir/bin:$PATH" @@ -11,11 +13,9 @@ then echo "Missing .vault" else echo "Loading secrets" - source <(cd $basedir/ansible; ansible-vault view ../.vault) + source <(ansible-vault view $basedir/.vault) fi -export ANSIBLE_CONFIG=$basedir/ansible.cfg - if [[ -x $basedir/ansible/.vault-password ]] then export ANSIBLE_VAULT_PASS=$($basedir/ansible/.vault-password) |