Skip to content

Merge pull request #115 from davidshq/snyk-fix-ce6ecc8969a77497e143bd… #43

Merge pull request #115 from davidshq/snyk-fix-ce6ecc8969a77497e143bd…

Merge pull request #115 from davidshq/snyk-fix-ce6ecc8969a77497e143bd… #43

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