Ansible can be used to deploy the same configuration to multiple network devices with a single playbook. YAML is used to define variables, hosts, roles, tasks and other elements. For example, a playbook is shown that uses the Juniper.junos role to load and merge a configuration file to switches, prompting for username and password and checking the connection before installing the configuration. The playbook also saves configuration diffs and logs of the process.