This document discusses using Ansible and Python to automate network configuration. It provides examples of using Ansible to initially provision and consistently configure switches in a data center network. Templates and variables are used to generate configuration files that are deployed using Ansible roles and plays. This allows the network to be rapidly built, changed, and validated in an automated and consistent manner.