Merge branch 'master' into development
This commit is contained in:
commit
55eee6c6ed
1 changed files with 8 additions and 7 deletions
|
|
@ -9,14 +9,15 @@ deploy:
|
||||||
before_script:
|
before_script:
|
||||||
- pip install ansible --quiet
|
- pip install ansible --quiet
|
||||||
- git clone https://git.fudiggity.nl/ansible/newsreader.git deployment --branch master
|
- git clone https://git.fudiggity.nl/ansible/newsreader.git deployment --branch master
|
||||||
- ansible-galaxy install -r deployment/roles/requirements.yml
|
- cd deployment
|
||||||
|
- ansible-galaxy install -r roles/requirements.yml
|
||||||
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
||||||
- echo "$DEPLOY_KEY" > deployment/deploy_key && chmod 0600 deployment/deploy_key
|
- echo "$DEPLOY_KEY" > deploy_key && chmod 0600 deploy_key
|
||||||
- echo "$VAULT_PASSWORD" > deployment/vault
|
- echo "$VAULT_PASSWORD" > vault
|
||||||
script:
|
script:
|
||||||
- cd deployment
|
- cd deployment
|
||||||
- >
|
- >
|
||||||
ansible-playbook deployment/playbook.yml
|
ansible-playbook playbook.yml
|
||||||
--inventory deployment/inventory.yml
|
--inventory inventory.yml
|
||||||
--private-key deployment/deploy_key
|
--private-key deploy_key
|
||||||
--vault-password-file deployment/vault
|
--vault-password-file vault
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue