Your Lab Environment
In this lab, you work in a pre-configured lab environment. You will have access to the following hosts:

Managed Host and 2 nodes


Inventory name

Ansible Control Host ansible-1
Managed Host 1 node1
Managed Host 2 node2

Step 1 – Access the Environment

Login to your control host via SSH:
Warning: Replace with your IP provided to you, and the X in studentX by the student number provided to you. ssh studentX@
Then become root: [student@ansible ~]$ sudo -i

Most prerequisite tasks have already been done for you:

  • Ansible software is installed
  • SSH connection and keys are configured
  • sudo has been configured on the managed hosts to run commands that require root privileges.

Check Ansible has been installed correctly

[root@ansible ~]# ansible –version

ansible 2.7.0

1. Ansible is keeping configuration management simple. Ansible requires no database or running daemons and can run easily on a laptop. On the managed hosts it needs no running agent.

2. In all subsequent exercises, you should work as the student user on the control node if not explicitly told differently.