Files
ansible-tasks/.github/workflows/update-pis.yml
Ozzy cc4a31ae82
All checks were successful
actions-lint / actions-lint (push) Successful in 5s
SSH private key
2024-09-13 14:48:03 +01:00

27 lines
633 B
YAML

name: Update raspberry pis
on:
issue_comment:
jobs:
deploy:
name: Deploy Ansible Playbook
if: ${{ github.event.comment.body == '!run update-pis'}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Ansible
shell: bash
run: |
sudo apt update
sudo apt install -y ansible
- name: Run Ansible
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbooks/update-pis.yml
key: ${{ secrets.SSH_PRIVATE_KEY }}
options: |
--inventory inventory