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 2 lab solution: Setting up an Ansible-managed environment

Lesson 2 lab solution: Setting up an Ansible-managed environment - Ansible Tutorial

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

Lesson 2 lab solution: Setting up an Ansible-managed environment

So, I would like to show you how to set up Ansible in an easy way. We have seen the way how you can set up Ansible using Ansible. That's not the purpose here. The purpose here is to do it as easy as possible. In order to do so, I'm opening two terminal windows and in one of the terminal windows, I'm going to access the manage machine. Which is listening at IP address 156. And there we go. So what is step one? Well, step one is where you are going to to edit ETC hosts. On the control node and on the control node, You need to identify the IP addresses and names of the different machines. So, I'm going to use Control and Ansible 1, which are just short names. Feel free to include some FQDNs if you want to. It's not really necessary. Next, I need to create a user account. So, sudo user add ansible and sudo passwd ansible. I need to set a password for my ansible user, going once and going twice. Right, now that I'm on the control node, I'm going to take care of this user ansible a little…

Contents