ansible-inventory -i inventory.yml --list
{
"_meta": {
"hostvars": {
"ios01": {
"ansible_connection": "network_cli",
"ansible_host": "172.16.2.1",
"ansible_network_os": "ios"
},
"ios02": {
"ansible_connection": "network_cli",
"ansible_host": "172.16.2.22",
"ansible_network_os": "ios"
},
"junos01": {
"ansible_connection": "netconf",
"ansible_host": "172.16.1.1",
"ansible_network_os": "junos"
},
"junos02": {
"ansible_connection": "netconf",
"ansible_host": "172.16.1.2",
"ansible_network_os": "junos"
},
"web01": {
"ansible_host": "127.16.0.1"
}
}
},
"all": {
"children": [
"router",
"ungrouped"
]
},
"ios": {
"hosts": [
"ios01",
"ios02"
]
},
"junos": {
"hosts": [
"junos01",
"junos02"
]
},
"router": {
"children": [
"ios",
"junos"
]
},
"ungrouped": {
"hosts": [
"web01"
]
}
}