Open dberg1 opened 3 years ago
Just noticed that VGs, mounts, devices, network interfaces and CPUs are already in ansible_facts: See https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/facts/hardware/aix.py
"ansible_facts": {
"mounts": [
{
"block_available": 41685,
"block_size": 4096,
"block_total": 98304,
"block_used": 56619,
"device": "/dev/hd4",
"fstype": "jfs2",
"inode_available": 40166,
"inode_total": 52669,
"inode_used": 12503,
"mount": "/",
"options": "rw,log=/dev/hd8",
"size_available": 170741760,
"size_total": 402653184,
"time": "Jul 12 12:18"
},
...
"vgs": {
"rootvg": [
{
"free_pps": "0",
"pp_size": "64 megabyte(s)",
"pv_name": "hdisk0",
"pv_state": "active",
"total_pps": "639"
},
{
"free_pps": "435",
"pp_size": "64 megabyte(s)",
"pv_name": "hdisk1",
"pv_state": "active",
"total_pps": "625"
}
]
},
lslv / lsvg / lspv commands