Here's the output. Some vars are obfuscated

$ ansible-inventory -i nms-vms --list
{
    "_meta": {
        "hostvars": {
            "nms-sz": {
                "Files": [],
                "ansible_become_method": "sudo",
                "ansible_common_remote_group": "sysadmins",
                "ansible_host": "172.28.x.x",
                "ansible_password": "xxx",
                "ansible_ssh_common_args": "-o StrictHostKeyChecking=no",
                "ansible_sudo_pass": "xxx",
                "ansible_user": "xxx",
                "mrtg": {
                    "sample_dir": "sz",
                    "sample_router": "sz-r1.4711"
                },
                "netplan": {
                    "ens160": {
                        "ipv4": {
                            "address": "172.28.x.x",
                            "gateway": "172.28.x.x",
                            "netmask": "255.255.255.128",
                            "prefix_length": 25
                        }
                    },
                    "ens192": {
                        "ipv4": {
                            "address": "192.168.x.x",
                            "netmask": "255.255.x.x",
                            "prefix_length": 30,
                            "routes": [
                                {
                                    "to": "192.168.250.0/24",
                                    "via": "192.168.x.x"
                                },
                                {
                                    "to": "172.30.95.22/32",
                                    "via": "192.168.x.x"
                                }
                            ]
                        }
                    }
                },
                "network_gear": {
                    "access": [
                        "ssh",
                        "telnet"
                    ],
                    "snmp_community": "xxx"
                },
                "nginx": {
                    "enabled": false,
                    "state": "stopped"
                },
                "rancid_groups": [
                    "sz"
                ],
                "rancid_user": "xxx",
                "rancid_user_pass": "xxx",
                "syslog_facilities": [
                    "local7"
                ]
            }
        }
    },
    "all": {
        "children": [
            "ungrouped",
            "vrf_nms"
        ]
    },
    "vrf_nms": {
        "hosts": [
            "nms-sz"
        ]
    }
}

Brian Coca schrieb am Mittwoch, 12. Januar 2022 um 22:23:48 UTC+1:

> show output of `ansible-inventory -i nms-vms --list`
>
> -- 
> ----------
> Brian Coca
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/92e6149e-33a8-45a1-be83-c65910769aecn%40googlegroups.com.

Reply via email to