In previous posts on automating and orchestrating ACI fabrics I demonstrated how to use the REST API interface of the Cisco ACI (APIC) controller to manage the logical and physical components of the fabric. While the preferred method would be to use the northbound interface, it is possible to initiate an SSH session to the controller itself. Ansible uses SSH instead of agents, pushing Python modules to the target hosts and executing them to complete the designated tasks.  The APIC is a Linux distribution with Python installed. This playbook is an example of using Ansible to manage one or more ACI controllers in the enterprise data center.

 

https://github.com/joelwking/ansible-aci/blob/master/apic_cli_example.yml

 

-Joel