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