Files
Ansible-Minecraft-Server/.gitea/workflows/ci.yml
Hubert Cornet 2247678957
Some checks failed
Run ansible / run-ansible-playbook (push) Failing after 54s
Actualiser .gitea/workflows/ci.yml
2025-08-22 19:45:31 +02:00

38 lines
1.0 KiB
YAML

name: Run ansible
on:
push:
schedule:
- cron: "0 */12 * * *"
jobs:
run-ansible-playbook:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install ansible
run: |
apt update && apt install ansible -y
# - name: Run playbook "main"
# run: |
# ansible-playbook -K -l minecraft playbooks/00-main.yml
- name: Run playbook "base server"
run: |
ansible-playbook -K -l minecraft playbooks/01-install-server.yml
- name: Send failure notification
uses: dawidd6/action-send-mail@v3
if: always() && failure()
with:
server_address: smtp.gmail.com
server_port: 465
secure: true
username: myuser
password: ${{ secrets.MAIL_PASSWORD }}
subject: ansible runbook failed
to: me@davegallant.ca
from: RFD Notify
body: |
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}