View on GitHub

ansible

Ansible Lab exercises

Workshop Exercise - Check the Prerequisites

Table of Contents

Objective

Guide

Your Lab Environment

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

Role Inventory name
Ansible Control Host control
Managed Host 1 node1
Managed Host 2 node2
Managed Host 3 node3

Step 1 - Access the Environment

Login to your host host via SSH:

Lab IP info

Warning

Inlocuieste 172.30.170.X cu IP-ul din tabelul Lab IP info corespunzator numelui tau.

ssh root@172.30.170.X

Tip

Password: 1qaz@WSX

Start the environment:

[root@localhost rhce8env]# vagrant up

Warning

Wait for vagrant to finish bringing up the environment.

Login to your control host via SSH:

[root@localhost rhce8env]# ssh user@control

Most prerequisite tasks have already been done for you:

Check Ansible has been installed correctly

[user@control ~]# ansible --version
ansible 2.8.5
[...]

Note

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.

Note

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

Step 2 - Working the Labs

You might have guessed by now this lab is pretty commandline-centric…​ :-)

Tip

In the lab guide commands you are supposed to run are shown with or without the expected output, whatever makes more sense in the context.

Step 3 - Challenge Labs

You will soon discover that many chapters in this lab guide come with a “Challenge Lab” section. These labs are meant to give you a small task to solve using what you have learned so far. The solution of the task is shown underneath a warning sign.


Navigation
Next Exercise

Click here to return to the Ansible for Red Hat Enterprise Linux Workshop