add ntfy to the ending to share whats over 80%

This commit is contained in:
Justin 2025-01-23 01:30:55 +00:00
parent eb13ba8fcd
commit 6366c9c9d8
1 changed files with 2 additions and 9 deletions

View File

@ -19,14 +19,7 @@
when: disk_usage.stdout[:-1]|int>80
- name: Posting
ntfy:
msg: '{"content": "Disk space on {{ inventory_hostname }} is above 80%!"}'
topic: "admin-alerts"
attrs:
priority: 4
actions:
- action: view
label: "Open Mastodon"
url: "ntfy.ki5bhv.com/server"
ansible.builtin.command:
cmd: 'curl -d "Disk space on {{ inventory_hostname }} is above 80%!" ntfy.ki5bhv.com/server'
when: disk_usage.stdout[:-1]|int>80