From 92294c460d9a4442fc255ae393e94aa982e76252 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 22 Sep 2016 11:29:24 +0300 Subject: Allow user to set PASSWORD_STORE_DIR --- ansible/run-playbook | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ansible') 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 "$@" -- cgit v1.2.1