add ntfy to the ending to share whats over 80%
This commit is contained in:
parent
eb13ba8fcd
commit
6366c9c9d8
|
@ -19,14 +19,7 @@
|
||||||
when: disk_usage.stdout[:-1]|int>80
|
when: disk_usage.stdout[:-1]|int>80
|
||||||
|
|
||||||
- name: Posting
|
- name: Posting
|
||||||
ntfy:
|
ansible.builtin.command:
|
||||||
msg: '{"content": "Disk space on {{ inventory_hostname }} is above 80%!"}'
|
cmd: 'curl -d "Disk space on {{ inventory_hostname }} is above 80%!" ntfy.ki5bhv.com/server'
|
||||||
topic: "admin-alerts"
|
|
||||||
attrs:
|
|
||||||
priority: 4
|
|
||||||
actions:
|
|
||||||
- action: view
|
|
||||||
label: "Open Mastodon"
|
|
||||||
url: "ntfy.ki5bhv.com/server"
|
|
||||||
when: disk_usage.stdout[:-1]|int>80
|
when: disk_usage.stdout[:-1]|int>80
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue