An Ansible playbook to run through the installation process of Netbox.
- v3.7.0
- Ubuntu 22.04LTS
- community.general
- Ensure your Ansible control node can communicate with your desired Netbox server
- Copy
inventory.example.yml
toinventory.yml
and modify to reflect your environment - Copy
config.example.yml
toconfig.yml
and add the Netbox superuser name, database name and database user. - Run
ansible-vault create secret.yml
, enter a password for the vault and add the following variables to the file:db_password: <your-database-password> nb_password: <netbox-superuser-password> nb_email: <netbox-superuser-password>
- Run
ansible-playbook -i inventory.yml main.yml --ask-vault-pass