summaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'ansible')
-rwxr-xr-xansible/run-playbook8
1 files changed, 6 insertions, 2 deletions
diff --git a/ansible/run-playbook b/ansible/run-playbook
index c796862..f2f2860 100755
--- a/ansible/run-playbook
+++ b/ansible/run-playbook
@@ -1,6 +1,6 @@
#!/bin/sh
-set -eu
+set -e
abspath()
{
@@ -12,5 +12,9 @@ srcdir()
abspath "$(dirname "$0")"
}
-export PASSWORD_STORE_DIR="$(srcdir)"/secrets
+if [ -z "$PASSWORD_STORE_DIR" ]
+then
+ export PASSWORD_STORE_DIR="$(srcdir)"/secrets
+fi
+
ansible-playbook -i hosts "$@"