From 65e4f3bb802b14af8e8c749910781c4ac381afa1 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Tue, 1 Sep 2020 22:27:24 +0200 Subject: [PATCH] 0.2.6.3 - Fallback to variable for vault password as file variables get execute permission set --- gitlab-ci/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitlab-ci/deploy.yml b/gitlab-ci/deploy.yml index ed429b7..1520e4a 100644 --- a/gitlab-ci/deploy.yml +++ b/gitlab-ci/deploy.yml @@ -10,6 +10,7 @@ deploy: - pip install ansible --quiet - git clone https://git.fudiggity.nl/sonny/ansible-playbooks.git deployment - mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts + - echo $VAULT_PASSWORD > deployment/vault script: - > ansible-playbook deployment/playbook.yml @@ -17,4 +18,4 @@ deploy: --limit newsreader --user ansible --private-key "$DEPLOY_KEY" - --vault-password-file "$VAULT_FILE" + --vault-password-file deployment/vault