Skip to content

Latest commit

 

History

History
 
 

1.1-setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Ansible Workshop for Beginners Exercise - Check the Prerequisites

Table of Contents

Objective

  • Understand the lab topology and how to access the environment.
  • Understand how to work the workshop exercises
  • Understand challenge labs

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 ansible-1
Managed Host 1 node1
Managed Host 2 node2
Managed Host 3 node3

Step 1 - Access the Environment

Login to your control host via SSH:

Warning

Replace 11.22.33.44 by your IP provided to you, and the X in studentX by the student number provided to you.

Tip

The password will be provided by your instructor

Then become root:

[student<X>@ansible-1 ~]$ 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-1 ~]# ansible --version
ansible 2.7.0
[...]

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.

Log out of the root account again:

[root@ansible-1 ~]# exit
logout

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…​ :-)

  • Don’t type everything manually, use copy & paste from the browser when appropriate. But stop to think and understand.

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