
NetBox Labs today released a public preview of NetBox Ansible Collection 4.0. The new version offers significant upgrades, delivering 132 modules, including 42 new ones that cover models previous collections didn’t. The 4.0 release is generated from the NetBox data model, so support for each new NetBox release can follow within days.
Automation is only as good as your data. Teams that get the most out of open source Ansible or Red Hat Ansible Automation Platform pair it with a system of record: a single, accurate record of every device, connection, and dependency. NetBox holds the intended state of your infrastructure (sites, devices, interfaces, IP addresses, circuits), and Ansible and Red Hat Ansible Automation Platform make the network match it.
NetBox Labs plans to regenerate the collection for each NetBox release, so infrastructure leaders running Red Hat Ansible Automation Platform are less likely to see upgrades stall their automation. Teams can keep running playbooks against the system of record with fewer fixes of their own to maintain.
Both Ansible and Red Hat Ansible Automation Platform make changes rapidly. The new version keeps the two in step: It follows NetBox releases closely, and it lets your playbooks reach far more of your system of record.
The 4.0 release delivers three major advantages for your teams:
Faster support for each new NetBox release
A collection you can standardize on
Broader NetBox coverage in your playbooks
The inventory and lookup plugins have been rewritten. They keep the host variables, group names, and defaults from 3.x; fetch pages concurrently; check lookup terms and filters against the NetBox data model; and need no Python packages beyond ansible-core. Together with the modules, they enable you to:
The preview works with Community NetBox, NetBox Cloud, and NetBox Enterprise on NetBox 4.6 through 4.7.6. Like every release of the NetBox Ansible Collection, it’s free and open source under the GPL-3.0-or-later license.
The 3.x collection’s own integration suite passes 527 of 528 module tasks against 4.0. Every 3.x module and option name still works, with a deprecation warning, until 5.0. Until GA, Ansible Galaxy installs 3.x by default, so specify the version to install the preview:
ansible-galaxy collection install netbox.netbox:==4.0.0-rc.2
Install the preview, run it against your playbooks, and tell us what you find. Get started for free.