Skip to content

Merge pull request #116 from davidshq/snyk-fix-f20f1b7e267c519f9c458c… #44

Merge pull request #116 from davidshq/snyk-fix-f20f1b7e267c519f9c458c…

Merge pull request #116 from davidshq/snyk-fix-f20f1b7e267c519f9c458c… #44

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