From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Configuring Cisco SMB devices with Ansible

Configuring Cisco SMB devices with Ansible - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Configuring Cisco SMB devices with Ansible

In this video, you will learn how to configure Cisco SMB devices with Ansible. So in order to get through this video, it is necessary that you have set up SSH as well as the Cisco switch in the required way. Consult the previous video for more details about it. Now, in order to connect to the Cisco devices, you know that SSH is a common way to connect to the device. And to connect to the device efficiently, the SSH feature control persist is enabled by default. Control persist keeps connections to servers open as a socket so that Ansible can avoid reconnecting to hosts at each task. And that's really what you want to happen in order to work with network devices. So in order to make sure this works well, create an ansible.cfg. And in the ansible.cfg, make sure that the settings that we've got right here are present. These are basically timeouts that ensure that your SSH connection is stabilized a bit more. So here we are. Let's have a look at the ansible.cfg. And oh, we can see it's…

Contents