mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-22 19:33:27 +01:00
Syntax highlighting for yml examples
This commit is contained in:
parent
2c59fd8bdb
commit
a17c294081
1 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ It looked something like this:
|
||||||
You can easily integrate ntfy into Ansible, Salt, or Puppet to notify you when runs are done or are highstated.
|
You can easily integrate ntfy into Ansible, Salt, or Puppet to notify you when runs are done or are highstated.
|
||||||
One of my co-workers uses the following Ansible task to let him know when things are done:
|
One of my co-workers uses the following Ansible task to let him know when things are done:
|
||||||
|
|
||||||
```yml
|
``` yaml
|
||||||
- name: Send ntfy.sh update
|
- name: Send ntfy.sh update
|
||||||
uri:
|
uri:
|
||||||
url: "https://ntfy.sh/{{ ntfy_channel }}"
|
url: "https://ntfy.sh/{{ ntfy_channel }}"
|
||||||
|
@ -113,7 +113,7 @@ There's also a dedicated Ansible action plugin (one which runs on the Ansible co
|
||||||
[ansible-ntfy](https://github.com/jpmens/ansible-ntfy). The following task posts a message
|
[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):
|
to ntfy at its default URL (`attrs` and other attributes are optional):
|
||||||
|
|
||||||
```yml
|
``` yaml
|
||||||
- name: "Notify ntfy that we're done"
|
- name: "Notify ntfy that we're done"
|
||||||
ntfy:
|
ntfy:
|
||||||
msg: "deployment on {{ inventory_hostname }} is complete. 🐄"
|
msg: "deployment on {{ inventory_hostname }} is complete. 🐄"
|
||||||
|
@ -127,7 +127,7 @@ You can use [shoutrrr](https://github.com/containrrr/shoutrrr) generic webhook s
|
||||||
[Watchtower](https://github.com/containrrr/watchtower/) notifications to your ntfy topic.
|
[Watchtower](https://github.com/containrrr/watchtower/) notifications to your ntfy topic.
|
||||||
|
|
||||||
Example docker-compose.yml:
|
Example docker-compose.yml:
|
||||||
```yml
|
``` yaml
|
||||||
services:
|
services:
|
||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
|
|
Loading…
Reference in a new issue