This Ansible Collection is an implementation of Model-Driven DevOps and includes the following roles:
If using NetBox:
NETBOX_API
NETBOX_TOKEN
To use an external NSO (ie. not deployed in CML):
NSO_URL
Protocol, FQDN or IP address and port (ex.http://192.168.1.100:8080
)NSO_USERNAME
NSO_PASSWORD
- Run the list of checks defined in `check_list`
check_list
: List of checks to runcheck_table
: Dictionary defining the checks
Note: See default values in roles/check/defaults/main.yml
- Update Netbox from NSO
Example:
ansible-playbook ciscops.mdd.update_netbox_from_nso
- Initialize Netbox
Example:
ansible-playbook ciscops.mdd.netbox_init
Note: Netbox modules to not work with Ansible <4, so the entire path will need to be specified when running with Ansible <3
- Initialize Netbox
ansible-playbook ciscops.mdd.netbox_init
- Add hosts from CML into netbox
Inventory Source: CML
Example:
ansible-playbook cml_update_netbox
- Update Netbox devices from NSO
Example:
ansible-playbook nso_update_netbox
- Initialize NSO
Example:
ansible-playbook nso_init
- Update NSO devices from inventory source
Example:
ansible-playbook nso_update_devices