diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-09-22 11:29:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-09-22 11:29:24 +0300 |
commit | 92294c460d9a4442fc255ae393e94aa982e76252 (patch) | |
tree | 851a49a2bb081373ed68ce8118255d363f24a9fd | |
parent | ae4903a3d25b1d1abdf1861cd2a5fdd2699afd20 (diff) | |
download | minipc-router-92294c460d9a4442fc255ae393e94aa982e76252.tar.gz |
Allow user to set PASSWORD_STORE_DIR
-rwxr-xr-x | ansible/run-playbook | 8 |
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 "$@" |