Files
ansible-tasks/.github/workflows/update-pis.yml
Ozzy 229b0a73cb
All checks were successful
actions-lint / actions-lint (push) Successful in 5s
Install ansible
2024-09-13 12:00:32 +01:00

27 lines
618 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: update-pis.yml
directory: playbooks
options: |
--inventory inventory