Created
November 1, 2018 12:07
-
-
Save ollybee/87c7f97a0bd7eaf68c9c58b09be8c573 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-inventory -vvv -i ./netbox_inventory.yml --host someserver | |
ansible-inventory 2.7.1 | |
config file = /etc/ansible/ansible.cfg | |
configured module search path = [u'/home/monitoring/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/lib/python2.7/dist-packages/ansible | |
executable location = /usr/bin/ansible-inventory | |
python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0] | |
Using /etc/ansible/ansible.cfg as config file | |
/home/monitoring/ansible/netbox_inventory.yml did not meet host_list requirements, check plugin documentation if this is unexpected | |
/home/monitoring/ansible/netbox_inventory.yml did not meet virtualbox requirements, check plugin documentation if this is unexpected | |
Fetching: https://netboxdev.hyperslice.net/api/dcim/sites/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net/api/dcim/regions/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net/api/tenancy/tenants/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net/api/dcim/racks/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net/api/dcim/device-roles/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net/api/dcim/device-types/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net/api/dcim/manufacturers/?limit=0 | |
Fetching: https://netboxdev.hyperslice.net//api/dcim/devices/?limit=0&name=someserver | |
Fetching: https://netboxdev.hyperslice.net//api/virtualization/virtual-machines/?limit=0&name=someserver | |
Parsed /home/monitoring/ansible/netbox_inventory.yml inventory source with netbox plugin | |
{ | |
"config_context": [ | |
{} | |
], | |
"device_roles": [ | |
"Dummy server" | |
], | |
"device_types": [ | |
"Dummy" | |
], | |
"manufacturers": [ | |
"Dummy" | |
], | |
"services": [ | |
[ | |
{ | |
"created": "2018-11-01", | |
"custom_fields": { | |
"key_text": null | |
}, | |
"description": "", | |
"device": { | |
"display_name": "someserver", | |
"id": 13084, | |
"name": "someserver", | |
"url": "https://netboxdev.hyperslice.net/api/dcim/devices/13084/" | |
}, | |
"id": 28, | |
"ipaddresses": [], | |
"last_updated": "2018-11-01T11:59:01.696607Z", | |
"name": "SSH", | |
"port": 22, | |
"protocol": { | |
"label": "TCP", | |
"value": 6 | |
}, | |
"virtual_machine": null | |
}, | |
{ | |
"created": "2018-11-01", | |
"custom_fields": { | |
"key_text": null | |
}, | |
"description": "", | |
"device": { | |
"display_name": "someserver", | |
"id": 13084, | |
"name": "someserver", | |
"url": "https://netboxdev.hyperslice.net/api/dcim/devices/13084/" | |
}, | |
"id": 29, | |
"ipaddresses": [], | |
"last_updated": "2018-11-01T11:59:18.855776Z", | |
"name": "awebsite.org", | |
"port": 443, | |
"protocol": { | |
"label": "TCP", | |
"value": 6 | |
}, | |
"virtual_machine": null | |
}, | |
{ | |
"created": "2018-11-01", | |
"custom_fields": { | |
"key_text": null | |
}, | |
"description": "", | |
"device": { | |
"display_name": "someserver", | |
"id": 13084, | |
"name": "someserver", | |
"url": "https://netboxdev.hyperslice.net/api/dcim/devices/13084/" | |
}, | |
"id": 30, | |
"ipaddresses": [], | |
"last_updated": "2018-11-01T11:59:32.669569Z", | |
"name": "anothersite.net", | |
"port": 443, | |
"protocol": { | |
"label": "TCP", | |
"value": 6 | |
}, | |
"virtual_machine": null | |
}, | |
{ | |
"created": "2018-11-01", | |
"custom_fields": { | |
"key_text": null | |
}, | |
"description": "", | |
"device": { | |
"display_name": "someserver", | |
"id": 13084, | |
"name": "someserver", | |
"url": "https://netboxdev.hyperslice.net/api/dcim/devices/13084/" | |
}, | |
"id": 31, | |
"ipaddresses": [], | |
"last_updated": "2018-11-01T11:59:54.599007Z", | |
"name": "arbitaryservice", | |
"port": 5544, | |
"protocol": { | |
"label": "UDP", | |
"value": 17 | |
}, | |
"virtual_machine": null | |
} | |
] | |
], | |
"sites": [ | |
"Dummy site" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment