Removed old pushover notifications

This commit is contained in:
2026-02-27 18:19:38 +01:00
parent cb3be3acd9
commit 84648d8670
2 changed files with 1 additions and 19 deletions

View File

@@ -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:

View File

@@ -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
msg: "{{ disk_usage.stdout }}"