Complete Example of Ansible Deployment for NetBox

Example

In my previous posts in this project, I have explained how to setup NetBox and a couple of the Ansible collection features. In this post, I want to demonstrate what is possible using this approach.

I have created multiple Ansible roles with different vars files containing a lot of configuration parameters.
The repo for this example can be found in my GitLab.

Ensure that there are environment vars or similar such as the Ansible Vault to pass in the NetBox URL and API Key

I will first start with an almost empty NetBox environment. I will require the devices created and the rack created. I need the devices created due to the NetBox API changing, and the rack is to be created as the NetBox API is looking for the rack ID dcim.rack:3 and not the name.

Leave a Comment

Your email address will not be published. Required fields are marked *