summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-09-22 11:29:24 +0300
committerLars Wirzenius <liw@liw.fi>2016-09-22 11:29:24 +0300
commit92294c460d9a4442fc255ae393e94aa982e76252 (patch)
tree851a49a2bb081373ed68ce8118255d363f24a9fd
parentae4903a3d25b1d1abdf1861cd2a5fdd2699afd20 (diff)
downloadminipc-router-92294c460d9a4442fc255ae393e94aa982e76252.tar.gz
Allow user to set PASSWORD_STORE_DIR
-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 "$@"