Actualiser .gitea/workflows/ci.yml
This commit is contained in:
@@ -30,22 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run playbook "Minecraft"
|
- name: Run playbook "Minecraft"
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -K -l minecraft playbooks.yml
|
ansible-playbook -i inventories/hosts playbook.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 }}
|
|
||||||
|
|
||||||
run-ansible-playbook:
|
run-ansible-playbook:
|
||||||
needs: ansible_lint_and_syntax_check # Ce job dépend du succès du précédent
|
needs: ansible_lint_and_syntax_check # Ce job dépend du succès du précédent
|
||||||
|
Reference in New Issue
Block a user