- name: check free space on /opt
aix_filesystem:
filesystem: /opt
size: +1G
state: present
when: ansible_facts["mounts"]["mount"] == "/opt" and
ansible_facts["mounts"]["size_available"] < 1073741824
there should be a "one line" solution imho.
| { |
| "device": "/dev/hd4", |
| "fstype": "jfs2", |
| "mount": "/opt", |
| "options": "rw,log=/dev/hd8", |
| "size_available": 92508160, |
| "size_total": 134217728, |
| "time": "May 05 14:39" |
| } |
| ]; |