1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 11:01:31 +01:00

gha: add ansible run workflow

This commit is contained in:
bretello 2024-07-05 22:11:40 +02:00
parent 0cfab23eb9
commit 81fa97520c
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -39,3 +39,30 @@ jobs:
env:
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}
ansible:
runs-on: archlinux-latest
steps:
- name: Install ansible
run: |
pacman -Sy
pacman -S ansible
- name: Setup local inventory
run: |
echo "localhost ansible_user=root connection=local" > ansible-hosts
- name: Run playbook
run: |
ansible-playbook -i ansible-hosts playbook.yml
- name: Notify on failure
if: failure()
run: |
python -m venv .
./bin/pip install https://git.decapod.one/brethil/bretellofier
./bin/bretellofier "[brethil/dotfiles] 💥 Build failed"
env:
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}