[GH-ISSUE #454] Ansible action plugin to post messages to ntfy.sh #347

Closed
opened 2026-05-07 00:23:19 +02:00 by BreizhHardware · 3 comments

Originally created by @jpmens on GitHub (Oct 29, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/454

I thought this might interest people: I've created a small Ansible action plugin which can post messages to ntfy.sh. (I'm aware the uri module can do this as well but think this is a bit simpler to use.)

- name: "Notify ntfy that we're done"
  ntfy:
        msg: "deployment on {{ inventory_hostname }} is complete. 🐄"
        attrs:
           tags: [ heavy_check_mark ]
           priority: 1

rabbit-9699

Feedback and suggestions / improvements are welcome at https://github.com/jpmens/ansible-ntfy

Originally created by @jpmens on GitHub (Oct 29, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/454 I thought this might interest people: I've created a small Ansible action plugin which can post messages to `ntfy.sh`. (I'm aware the `uri` module can do this as well but think this is a bit simpler to use.) ```yaml - name: "Notify ntfy that we're done" ntfy: msg: "deployment on {{ inventory_hostname }} is complete. 🐄" attrs: tags: [ heavy_check_mark ] priority: 1 ``` ![rabbit-9699](https://user-images.githubusercontent.com/60706/198824486-2c5f8083-cc27-4ccf-a909-964881ea936b.png) Feedback and suggestions / improvements are welcome at [https://github.com/jpmens/ansible-ntfy](https://github.com/jpmens/ansible-ntfy)
BreizhHardware 2026-05-07 00:23:19 +02:00
  • closed this issue
  • added the
    docs
    label
Author
Owner

@binwiederhier commented on GitHub (Oct 30, 2022):

That's awesome. Thank you for sharing. Added to the docs: github.com/binwiederhier/ntfy@62cd517223

<!-- gh-comment-id:1296057992 --> @binwiederhier commented on GitHub (Oct 30, 2022): That's awesome. Thank you for sharing. Added to the docs: https://github.com/binwiederhier/ntfy/commit/62cd51722316039355638bd6169fd868b053ced3
Author
Owner

@binwiederhier commented on GitHub (Oct 30, 2022):

If you like, you could add a concrete example to the examples page too, in addition to what's already there: https://github.com/binwiederhier/ntfy/blob/main/docs/examples.md#ansible-salt-and-puppet

<!-- gh-comment-id:1296058289 --> @binwiederhier commented on GitHub (Oct 30, 2022): If you like, you could add a concrete example to the examples page too, in addition to what's already there: https://github.com/binwiederhier/ntfy/blob/main/docs/examples.md#ansible-salt-and-puppet
Author
Owner

@binwiederhier commented on GitHub (Oct 31, 2022):

Merged PR. Thanks for your work.

<!-- gh-comment-id:1297249848 --> @binwiederhier commented on GitHub (Oct 31, 2022): Merged PR. Thanks for your work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#347
No description provided.