This commit is contained in:
2023-07-22 21:53:57 +02:00
parent 143071494e
commit 2d170e53af

View File

@@ -8,8 +8,8 @@
- name: Send notification
community.general.pushover:
title: 'Disk Space Warning!'
msg: 'Disk usage from {{inventory_hostname}} is {{ disk_usage.stdout }}'
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}}
when: disk_usage.stdout[:-1]|int > disk_threshold|int