print out disk usage

This commit is contained in:
2023-07-24 19:09:13 +02:00
parent c85afeb4d3
commit f17d873346

View File

@@ -5,6 +5,10 @@
shell: df -h / | awk 'NR==2 {print $5}'
register: disk_usage
- name: Print disk usage
debug:
msg: '{{ disk_usage.stdout }}'
- name: Send notification
community.general.pushover:
title: 'Disk Space Warning!'