From 304902fafec16906a9c1181fbdcedbd31dcab42c Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Fri, 25 Sep 2020 23:40:28 -0400 Subject: [PATCH] Fixed 'make vault' target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2ffa04b..40350c7 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,10 @@ ${VAULT_PASS_FILE}: ${ANSIBLE} . ${PASS_SRC}; pass $$PASS_LOC > $@ ${VAULT_FILE}: ${VAULT_PASS_FILE} - ${ANSIBLE_VAULT} create --vault-password-file ${VAULT_PASS_FILE} $@ + if [ ! -e "${VAULT_FILE}" ]; then \ + ${ANSIBLE_VAULT} create --vault-password-file ${VAULT_PASS_FILE} $@; \ + fi + touch $@ # Linting YAML_FILES=$(shell find ansible/ -name '*.yml' -not -name '*vault*')