In this recipe, we will outline how to connect to Cisco IOS devices from Ansible via SSH in order to start managing devices from Ansible.
Connecting to Cisco IOS devices
Getting ready
In order to follow along with this recipe, an Ansible inventory file should be constructed as per the previous recipe. IP reachability between the Ansible control machine and all the devices in the network must be configured.
How to do it...
- Inside the ch2_ios directory, create the groups_vars folder.
- Inside the group_vars folder, create the network.yml file with the following...