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.

Lesson 19 lab solution: Automating switch setup with Ansible

Lesson 19 lab solution: Automating switch setup with Ansible - Ansible Tutorial

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

Lesson 19 lab solution: Automating switch setup with Ansible

So, as a lab solution, I will obviously continue on the Cisco device that we have worked with before. And I just want to show you what is possible. In this case, we are going to check how far we get using iOS modules to make a backup. So I choose Ansible doc minus L, grab iOS. So here are the different options. In order to work with iOS backups, you can see there is no specific module, but there is iOS config. So let me do an Ansible doc on iOS config, which is showing the configuration, and hey, look at that. There is a backup section, which is all about making a backup. It has specific options. I'm not going to do any options. I'll be happy if we just have this working. So, do we have anything else? Always nice to use the search feature. And there we can see, oh, this is about return values and so much output here. We don't have any decent examples, so let me just write something myself. Lab17.yaml And in there I am going to run name backup iOS. In the end, it's iOS also running on…

Contents