From 84648d86705f786fe8124e88d597da60059532b7 Mon Sep 17 00:00:00 2001 From: Lino Schmidt Date: Fri, 27 Feb 2026 18:19:38 +0100 Subject: [PATCH] Removed old pushover notifications --- playbooks/aptupdates.yml | 9 --------- playbooks/diskspace.yml | 11 +---------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/playbooks/aptupdates.yml b/playbooks/aptupdates.yml index 06b09aa..e2f2968 100644 --- a/playbooks/aptupdates.yml +++ b/playbooks/aptupdates.yml @@ -12,15 +12,6 @@ stat: path: /var/run/reboot-required register: reboot_required - - - name: Send notification - community.general.pushover: - title: 'Reboot Required!' - msg: 'Reboot is required on {{inventory_hostname}}' - app_token: '{{ app_token }}' - user_key: '{{ user_key }}' - delegate_to: localhost - when: reboot_required.stat.exists - name: Give reboot notification ansible.builtin.debug: diff --git a/playbooks/diskspace.yml b/playbooks/diskspace.yml index 80dcf02..09630d2 100644 --- a/playbooks/diskspace.yml +++ b/playbooks/diskspace.yml @@ -8,13 +8,4 @@ - name: Print disk usage ansible.builtin.debug: - msg: "{{ disk_usage.stdout }}" - - - name: Send notification - community.general.pushover: - title: 'Disk Space Warning!' - msg: 'Disk usage from {{inventory_hostname}} is at {{ disk_usage.stdout }}' - app_token: '{{ app_token }}' - user_key: '{{ user_key }}' - delegate_to: localhost - when: disk_usage.stdout[:-1]|int > disk_threshold|int \ No newline at end of file + msg: "{{ disk_usage.stdout }}" \ No newline at end of file