diff --git a/diskspace.yml b/diskspace.yml index daecd63..f8c80dc 100644 --- a/diskspace.yml +++ b/diskspace.yml @@ -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}} \ No newline at end of file + when: disk_usage.stdout[:-1]|int > disk_threshold|int \ No newline at end of file