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 16 lab solution: Managing Azure

Lesson 16 lab solution: Managing Azure - Ansible Tutorial

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

Lesson 16 lab solution: Managing Azure

So here we are, and we are already in the right location, the vim remove-stuff.yaml. And I'm going to work on the vim remove-stuff.yaml, and yes, I'm going to do that step by step. So I am working in VI, and let me delete this here. Oh, I am opening it and I'm using a P to paste it right here. It's inconvenient, but it needs to be done. There we go. At least the create virtual machine. I'm first swapping the order. So the create virtual machine is done before, or the remove virtual machine. That's what we are going to do is done before removing the network. So I need to repeat this a couple of times. I'm deleting and then I am pasting and making sure that it is looking alright. In particular making sure that I'm not losing the order. All right, here I'm done swapping the order. I messed up the indentation a little bit. So let's make sure that this is all right. That's looking so much better. And now I'm just going to hope that state absent is universal. So you know what? I'm just…

Contents