i have to follwing fact structure...how to access the "size_available" 
stuff from the opt filesystem?

i tried this but it looks dorky...

- 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.



"mounts": [

{ 
"device": "/dev/hd4", 
"fstype": "jfs2", 
"mount": "/opt", 
"options": "rw,log=/dev/hd8", 
"size_available": 92508160, 
"size_total": 134217728, 
"time": "May 05 14:39" 
} 
];








-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e3957ec4-5e9d-4ff7-a587-c7dd3f0db318%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to