-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Ansible NetBox Collection version
v3.8.1
Ansible version
I know, we're a few releases behind ;)
ansible 2.9.13
config file = /local/ansible.cfg
configured module search path = ['/home/awx/.ansible/collections/ansible_collections', '/local/plugins/modules', '/root/.ansible/collections/ansible_collections']
ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.9.14 (main, Sep 7 2022, 23:02:01) [GCC 10.2.1 20210110]
NetBox version
v2.9.11
Python version
3.9
Steps to Reproduce
With the Ansible version and NetBox version above, attempt to list inventory data from an inventory using plugin: "netbox.netbox.nb_inventory"
ansible-inventory --list -i inventories/prod-inventory.yml
Expected Behavior
Output the results of the inventory as queried from NetBox. Downgrading to v3.8.0 fixes the issue.
Observed Behavior
root@a4cdaeb9b3d0:/local# ansible-inventory --list -i inventories/prod-inventory.yml
[WARNING]: * Failed to parse /local/inventories/prod-inventory.yml with script plugin: problem running /local/inventories/prod-inventory.yml --list ([Errno 8] Exec format error: '/local/inventories/prod-
inventory.yml')
[WARNING]: * Failed to parse /local/inventories/prod-inventory.yml with auto plugin: 'InventoryModule' object has no attribute '_vars'
[WARNING]: * Failed to parse /local/inventories/prod-inventory.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]: * Failed to parse /local/inventories/prod-inventory.yml with ini plugin: Invalid host pattern '---' supplied, '---' is normally a sign this is a YAML file.
[WARNING]: Unable to parse /local/inventories/prod-inventory.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available