Skip to content

Merge pull request #125 from davidshq/snyk-fix-7735b8a48dc8a8151c865d… #51

Merge pull request #125 from davidshq/snyk-fix-7735b8a48dc8a8151c865d…

Merge pull request #125 from davidshq/snyk-fix-7735b8a48dc8a8151c865d… #51

Workflow file for this run

name: Update Celery worker
on:
push:
branches:
- master
jobs:
ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Ansible role
run: ansible-galaxy install -r ansible/requirements.yml
- name: Write vault pass and private key
env:
VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
run: |
echo $VAULT_PASSWORD > ansible/vault_pass.txt
mkdir -p $HOME/.ssh
echo "$PRIVATE_KEY" > $HOME/.ssh/id_miqa
chmod 600 $HOME/.ssh/id_miqa
- name: Run Ansible playbook for Celery
env:
ANSIBLE_HOST_KEY_CHECKING: false
working-directory: ansible
run: ansible-playbook --vault-password-file vault_pass.txt -i hosts playbook.yml