---
- name: Build VXLAN EVPN fabric with NaC
hosts: all
any_errors_fatal: true
gather_facts: false
roles:
# Prepare service model for all subsequent roles
# Note - The validate role is run automatically as a prerequisite to the create, deploy, and remove roles.
#
# - role: cisco.nac_dc_vxlan.validate
# -----------------------
# DataCenter Roles
# Role: cisco.nac_dc_vxlan.dtc manages direct to controller ND workflows
#
- role: cisco.nac_dc_vxlan.dtc.create
tags:
- role_create
- role: cisco.nac_dc_vxlan.dtc.deploy
tags:
- role_deploy
- role: cisco.nac_dc_vxlan.dtc.remove
tags:
- role_remove
The playbook executes the NaC roles. In this task, we will run only the validation, VRF/Network create, and deploy portions by using Ansible tags.
cd ~/workspace/CiscoLive/DEVWKS-3928
Run the NaC playbook against fabric-stage. The cr_manage_vrfs and cr_manage_networks tags target the
overlay VRF and Network create workflow, while role_deploy deploys the pending intent to the fabric.
source .env ; ansible-playbook -i hosts.stage.yaml vxlan.yaml \
--tags "cr_manage_vrfs,\
cr_manage_networks,\
role_deploy"
<...SNIP...>
PLAY RECAP ***********************************************************************************************************************************************************************
fabric-stage : ok=41 changed=4 unreachable=0 failed=0 skipped=19 rescued=0 ignored=0
PLAYBOOK RECAP *******************************************************************************************************************************************************************
Playbook run took 0 days, 0 hours, 0 minutes, 51 seconds
TASKS RECAP **********************************************************************************************************************************************************************
Wednesday 27 May 2026 20:22:02 +0000 (0:00:00.076) 0:00:51.283 *********
===============================================================================
cisco.nac_dc_vxlan.deploy : Execute Deploy of Resources ------------------------------------------------------------------------------------------------------------------ 31.83s
cisco.nac_dc_vxlan.create : Execute Create Resources ---------------------------------------------------------------------------------------------------------------------- 6.27s
cisco.nac_dc_vxlan.common : Build Resources ------------------------------------------------------------------------------------------------------------------------------- 2.93s
cisco.nac_dc_vxlan.connectivity_check : Get Cisco Nexus Dashboard Fabric Controller Version ------------------------------------------------------------------------------- 1.32s
cisco.nac_dc_vxlan.deploy : Execute Deploy of Resources ------------------------------------------------------------------------------------------------------------------- 1.18s
cisco.nac_dc_vxlan.connectivity_check : Verify Authorization to Nexus Dashboard ------------------------------------------------------------------------------------------- 0.64s
cisco.nac_dc_vxlan.validate : Copy Service Model Data to Host ------------------------------------------------------------------------------------------------------------- 0.62s
cisco.nac_dc_vxlan.validate : Copy Extended Service Model Data to Host ---------------------------------------------------------------------------------------------------- 0.50s
cisco.nac_dc_vxlan.connectivity_check : Get Cisco Nexus Dashboard Version ------------------------------------------------------------------------------------------------- 0.45s
cisco.nac_dc_vxlan.connectivity_check : Verify Connection to Nexus Dashboard ---------------------------------------------------------------------------------------------- 0.42s
cisco.nac_dc_vxlan.validate : Stat Factory Defaults ----------------------------------------------------------------------------------------------------------------------- 0.41s
cisco.nac_dc_vxlan.validate : Stat the Golden Service Model Data ---------------------------------------------------------------------------------------------------------- 0.28s
cisco.nac_dc_vxlan.validate : Stat the Extended Service Model Data -------------------------------------------------------------------------------------------------------- 0.27s
cisco.nac_dc_vxlan.validate : Display Inventory Directory ----------------------------------------------------------------------------------------------------------------- 0.20s
cisco.nac_dc_vxlan.connectivity_check : Set Cisco Nexus Dashboard Fabric Controller Version Var --------------------------------------------------------------------------- 0.18s
cisco.nac_dc_vxlan.validate : Validate NDFC Service Model Data ------------------------------------------------------------------------------------------------------------ 0.18s
cisco.nac_dc_vxlan.connectivity_check : Set Cisco Nexus Dashboard Version Var --------------------------------------------------------------------------------------------- 0.17s
cisco.nac_dc_vxlan.common : Display Resource Build Summary ---------------------------------------------------------------------------------------------------------------- 0.17s
cisco.nac_dc_vxlan.validate : Display Role Path --------------------------------------------------------------------------------------------------------------------------- 0.17s
cisco.nac_dc_vxlan.validate : Prepare Service Model ----------------------------------------------------------------------------------------------------------------------- 0.16s
ROLES RECAP **********************************************************************************************************************************************************************
Wednesday 27 May 2026 20:22:02 +0000 (0:00:00.076) 0:00:51.282 *********
===============================================================================
deploy ----------------------------------------------------------------- 33.16s
create ------------------------------------------------------------------ 6.50s
validate ---------------------------------------------------------------- 4.63s
common ------------------------------------------------------------------ 3.49s
connectivity_check ------------------------------------------------------ 3.19s
common_global ----------------------------------------------------------- 0.04s
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
total ------------------------------------------------------------------ 51.00s
The exact task names and changed counts may differ by collection version and current fabric state. The important result is that validation succeeds and the play recap has zero failures.