Skip to content

Instantly share code, notes, and snippets.

@oboukili
Created May 24, 2017 16:23
Show Gist options
  • Select an option

  • Save oboukili/4bfc95d97fc340e770321201f70dce4c to your computer and use it in GitHub Desktop.

Select an option

Save oboukili/4bfc95d97fc340e770321201f70dce4c to your computer and use it in GitHub Desktop.
dyninventory output
> $ ./dynamic-inventory.py --list
{
"infrastructure": {
"children": [
"mycloud"
]
},
"_meta": {
"hostvars": {
"apps-public1": {
"private_networks": [
{
"raw_interface": null,
"name": "mycloud",
"vlanid": null,
"ipv4": {
"broadcast": null,
"netmask": null,
"gateway": null,
"address": "10.5.70.9"
}
}
],
"ansible_user": "root",
"ansible_host": "10.5.70.9",
"ansible_port": 22,
"cloud_provider": "mycloud",
},
"bastion": {
"private_networks": [
{
"raw_interface": null,
"name": "mycloud",
"vlanid": null,
"ipv4": {
"broadcast": null,
"netmask": null,
"gateway": null,
"address": "10.4.141.5"
}
}
],
"ansible_user": "root",
"ansible_host": "10.4.141.5",
"ansible_port": 22,
"cloud_provider": "mycloud",
}
}
},
"mycloud": [
"apps-public1",
"bastion"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment