From c545a5a8c8feefac4176b99124be6a2b63c11f05 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Fri, 29 Dec 2023 00:00:06 -0500 Subject: [PATCH] Fix gitea ansible job --- .../setting-up-gitea-actions-with-tailscale/index.md | 10 +++------- .../setting-up-gitea-actions-with-tailscale/index.html | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/content/post/setting-up-gitea-actions-with-tailscale/index.md b/content/post/setting-up-gitea-actions-with-tailscale/index.md index 1cf0d121..7948cfa3 100644 --- a/content/post/setting-up-gitea-actions-with-tailscale/index.md +++ b/content/post/setting-up-gitea-actions-with-tailscale/index.md @@ -191,22 +191,18 @@ jobs: options: | --inventory inventory --limit ${{ matrix.host }} - send-failure-notification: - needs: run-ansible-playbook - runs-on: ubuntu-latest - if: always() && failure() - steps: - 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: gitea job ${{github.repository}} failed! + subject: ansible runbook '${{ matrix.host }}' failed to: me@davegallant.ca - from: Gitea + from: RFD Notify body: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }} ``` diff --git a/public/blog/2023/12/10/setting-up-gitea-actions-with-tailscale/index.html b/public/blog/2023/12/10/setting-up-gitea-actions-with-tailscale/index.html index 082dd89a..63f99b98 100644 --- a/public/blog/2023/12/10/setting-up-gitea-actions-with-tailscale/index.html +++ b/public/blog/2023/12/10/setting-up-gitea-actions-with-tailscale/index.html @@ -232,22 +232,18 @@ options: | --inventory inventory --limit ${{ matrix.host }} - send-failure-notification: - needs: run-ansible-playbook - runs-on: ubuntu-latest - if: always() && failure() - steps: - 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: gitea job ${{github.repository}} failed! + subject: ansible runbook '${{ matrix.host }}' failed to: me@davegallant.ca - from: Gitea + from: RFD Notify body: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}

And voilĂ :