Skip to content

Instantly share code, notes, and snippets.

@remyleone
Created September 10, 2018 12:53
Show Gist options
  • Save remyleone/451d642e14149cc031ec4809f3e545d3 to your computer and use it in GitHub Desktop.
Save remyleone/451d642e14149cc031ec4809f3e545d3 to your computer and use it in GitHub Desktop.
$ ansible-inventory -i netbox_inventory.yml --list
--Return--
> /Users/sieben/workspace/ansible/lib/ansible/plugins/inventory/netbox.py(89)parse()->None
-> pdb.set_trace()
(Pdb) l
84 super(InventoryModule, self).parse(inventory, loader, path)
85 self._read_config_data(path=path)
86
87
88 import pdb
89 -> pdb.set_trace()
90 #
91 # token = self.get_option("oauth_token")
92 # hostname_preferences = self.get_option("hostnames")
93 #
94 # group_preferences = self.get_option("groups")
(Pdb) self.get_option("bonjour")
*** AnsibleError: Unhandled exception when retrieving bonjour:
Traceback (most recent call last):
File "/Users/sieben/workspace/ansible/lib/ansible/config/manager.py", line 350, in get_config_value
keys=keys, variables=variables, direct=direct)
File "/Users/sieben/workspace/ansible/lib/ansible/config/manager.py", line 372, in get_config_value_and_origin
defs = self._plugins[plugin_type][plugin_name]
KeyError: u'netbox'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment