Closed BackblazeJeremy closed 11 months ago
This is a duplicate of #1061
For those like me that need this fix ahead of a release, you can do so by installing the collection by hash with ansible-galaxy
. You can do so by creating this requirements.yml
file:
roles: []
collections:
- name: https://github.com/netbox-community/ansible_modules.git
type: git
version: 5f497b5d0e5524529636eea68466bfbec203dd4b
Then apply it with ansible-galaxy install -r requirements.yml
. This worked for me.
Ansible NetBox Collection version
v3.14.0
Ansible version
NetBox version
v3.6.1
Python version
3.11
Steps to Reproduce
netbox.netbox.netbox_device
:Expected Behavior
We expect the latest version of the Ansible
netbox.netbox.netbox_device
module (v3.14.0
as of 2023/09/20) to work withv3.6.1
of Netbox.Observed Behavior
This exact scenario worked with the provided example and same version of the Netbox Ansible collection with
v3.5.9
before we upgraded tov3.6.1
, and now fails since Netbox was upgraded. Below is the full error message for the task:This appears to be a change in the Netbox API. What was once
device_role
appears to now berole
, which does not appear to be handled in the Ansible module. This effectively prevents any Ansible automation to create new host devices or update their roles.