Task02
Configure VRF and Network using overlay role playbook

Configure VRFs and Networks

Step 1 - Re-examine the top level build.yml playbook


---
# 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.

Step 2 - Make sure you are in the root directory of the project folder


cd ~/workspace/CiscoLive/DEVWKS-3928

Note

Use the following password when prompted for the Ansible vault password in the next step

  • Password: cisco.123
  • Step 3 - Run the build.yml Ansible playbook

    
    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.17]
    
    TASK [configure_overlay : Create and store generated VRF configuration] ************************************************************************************************
    ok: [10.15.0.17]
    
    TASK [configure_overlay : Create file to hold rendered Network information] ********************************************************************************************
    changed: [10.15.0.17]
    
    TASK [configure_overlay : Create and store generated Network configuration] ********************************************************************************************
    ok: [10.15.0.17]
    
    TASK [configure_overlay : Manage NDFC Fabric VRFs] *********************************************************************************************************************
    changed: [10.15.0.17]
    
    TASK [configure_overlay : Manage NDFC Fabric Networks] *****************************************************************************************************************
    changed: [10.15.0.17]
    
    TASK [configure_overlay : Config-Save for Fabric fabric-stage] ************************************************************************************************************************
    ok: [10.15.0.17]
    
    TASK [configure_overlay : Deploy for Fabric fabric-stage] *****************************************************************************************************************************
    ok: [10.15.0.17]
    
    PLAY RECAP ****************************************************************************************************************************************************************************
    10.15.0.17                 : ok=8    changed=4    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0