diff --git a/disk_space.yml b/disk_space.yml new file mode 100644 index 0000000..13053e3 --- /dev/null +++ b/disk_space.yml @@ -0,0 +1,14 @@ +--- +- name: Report Disk Space Availability + hosts: all + gather_facts: yes + tasks: + - name: Display available disk spaces for all mounts + ansible.builtin.debug: + msg: > + Mount: {{ item.mount }} | + Size Total: {{ (item.size_total / 1024 / 1024 / 1024) | round(2) }} GB | + Size Available: {{ (item.size_available / 1024 / 1024/ 1204) | round(2) }} GB + loop: "{{ ansible_mounts }}" + loop_control: + label: "{{ item.mount }}" \ No newline at end of file