mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-25 20:59:36 +01:00
Merge pull request #456 from jpmens/patch-1
Add ansible-ntfy to Ansible section
This commit is contained in:
commit
2c59fd8bdb
1 changed files with 13 additions and 0 deletions
|
@ -109,6 +109,19 @@ One of my co-workers uses the following Ansible task to let him know when things
|
||||||
body: "{{ inventory_hostname }} reseeding complete"
|
body: "{{ inventory_hostname }} reseeding complete"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
There's also a dedicated Ansible action plugin (one which runs on the Ansible controller) called
|
||||||
|
[ansible-ntfy](https://github.com/jpmens/ansible-ntfy). The following task posts a message
|
||||||
|
to ntfy at its default URL (`attrs` and other attributes are optional):
|
||||||
|
|
||||||
|
```yml
|
||||||
|
- name: "Notify ntfy that we're done"
|
||||||
|
ntfy:
|
||||||
|
msg: "deployment on {{ inventory_hostname }} is complete. 🐄"
|
||||||
|
attrs:
|
||||||
|
tags: [ heavy_check_mark ]
|
||||||
|
priority: 1
|
||||||
|
```
|
||||||
|
|
||||||
## Watchtower (shoutrrr)
|
## Watchtower (shoutrrr)
|
||||||
You can use [shoutrrr](https://github.com/containrrr/shoutrrr) generic webhook support to send
|
You can use [shoutrrr](https://github.com/containrrr/shoutrrr) generic webhook support to send
|
||||||
[Watchtower](https://github.com/containrrr/watchtower/) notifications to your ntfy topic.
|
[Watchtower](https://github.com/containrrr/watchtower/) notifications to your ntfy topic.
|
||||||
|
|
Loading…
Reference in a new issue