Another attempt

This commit is contained in:
Sonny 2020-03-22 19:03:37 +01:00
parent fdec1efcf0
commit 99ba773b91

View file

@ -95,8 +95,8 @@ deploy:
before_script:
- apt-get update && apt-get install -y ansible git
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.fudiggity.nl/sonny/ansible-playbooks.git deployment
- echo $DEPLOY_HOST > deployment/hosts.yml
- echo $DEPLOY_KEY > deployment/deploy_key
- echo "$DEPLOY_HOST" > deployment/hosts.yml
- echo "$DEPLOY_KEY" > deployment/deploy_key
script:
- ansible-playbook deployment/playbook.yml --inventory deployment/hosts.yml --limit newsreader --user ansible --private-key deployment/deploy_key
when: manual