- Fallback to variable for vault password as file variables get execute permission set
This commit is contained in:
Sonny Bakker 2020-09-01 22:27:24 +02:00
parent f0df342f61
commit 65e4f3bb80

View file

@ -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