Install ansible required roles

This commit is contained in:
Sonny Bakker 2020-12-19 21:52:01 +01:00
parent 517a89d2da
commit 73401b6ca3

View file

@ -9,6 +9,7 @@ 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
- 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" > deployment/deploy_key && chmod 0600 deployment/deploy_key
- echo "$VAULT_PASSWORD" > deployment/vault - echo "$VAULT_PASSWORD" > deployment/vault