---
# This is the top level build playbook that runs the various
# Ansible roles that will be used to build out the fabric
- name: Build Out Fabric on NDFC
hosts: ndfc
gather_facts: false
roles:
- configure_overlay
# - bonus_template_policy
This build.yml
playbook executes a role called configure_overlay
that will be used to create
the VRFs and Networks that are part of the overlay. The configure_overlay
role is a collection of Ansible
tasks that we designed in the prevous section to call the dcnm.vrf
and dcnm.network
modules
in the NDFC collection.
cd /home/cisco/CiscoLive/DEVWKS-3928
Use the following password when prompted for the Ansible vault password in the next step
ansible-playbook -i hosts.stage.yml build.yml --ask-vault-password
Vault password:
PLAY [Build Out Fabric on NDFC] ****************************************************************************************************************************************
TASK [configure_overlay : Create file to hold rendered VRF information] ************************************************************************************************
changed: [10.15.0.98]
TASK [configure_overlay : Create and store generated VRF configuration] ************************************************************************************************
ok: [10.15.0.98]
TASK [configure_overlay : Create file to hold rendered Network information] ********************************************************************************************
changed: [10.15.0.98]
TASK [configure_overlay : Create and store generated Network configuration] ********************************************************************************************
ok: [10.15.0.98]
TASK [configure_overlay : Manage NDFC Fabric VRFs] *********************************************************************************************************************
changed: [10.15.0.98]
TASK [configure_overlay : Manage NDFC Fabric Networks] *****************************************************************************************************************
changed: [10.15.0.98]
PLAY RECAP *************************************************************************************************************************************************************
10.15.0.98 : ok=6 changed=4 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0