From 6366c9c9d8b1443e39057bdd76924eb11b5cc674 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 23 Jan 2025 01:30:55 +0000 Subject: [PATCH] add ntfy to the ending to share whats over 80% --- maint-diskspace.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/maint-diskspace.yaml b/maint-diskspace.yaml index 7ad47d1..58b4fa2 100644 --- a/maint-diskspace.yaml +++ b/maint-diskspace.yaml @@ -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