July Release Confetti
150+ New Courses, Hands‑On Labs, And
Interactive Learning Activities
Learn More

LiNUX Lab

Ansible Parallellism

We deploy the real environment, you take the scenario-based labs on us. Hands-on, from anywhere, at any time.

Time required: 1 Hours

Scope

use ansible ad-hoc to install software locally.  The student should use their own lab servers and configure up 6 of them for use with testing forking.  Use the command line method to change the parallelism of the command.  Do this with several amounts for forks.

Suggested Pre Requisites

 

Standard tasks for all lab servers to set them up for self use.

 

Log into the lab server as user then sudo to the root user.

 

sudo su -

 

Install ansible with

 

yum install ansible

 

Add the local server as a local group.

 

Edit the /etc/ansible/hosts file.  Put the following at the top.

 

[local]
localhost

[single]
localhost

[databases]
localhost

[other]
localhost

[temp]
localhost

 

Save the /etc/ansible/hosts file.

 

Create an ansible user to use with the labs. 

 sudo useradd -G wheel ansible

Log out and log in as the ansible user.

Create an ssh key for your user.

 

ssh-keygen

Use the ssh-copy-id command to copy your own ssh key to your own user's authority file.

 


ssh-copy-id localhost

Use the ansible all -m ping command to test connectivity to the localhost.   You should now be ready to use the lab server.

 

 

 

Objectives

use ansible ad-hoc to install software locally.  The student should use their own lab servers and configure up 6 of them for use with testing forking.  Use the command line method to change the parallelism of the command.  Do this with several amounts for forks.

Overview

use ansible ad-hoc to install software locally.  The student should use their own lab servers and configure up 6 of them for use with testing forking.  Use the command line method to change the parallelism of the command.  Do this with several amounts for forks.

Scenarios

1. Setup Lab server as per prerequisites.
2. The student should set up their own lab servers using the servers available under their Server tab.
3. The student should add their own lab servers to the /etc/ansible/hosts file.
4. Using ansible ad-hoc commands you should install apache on your servers.
5. Examine the install process and how many servers are done at the same time.
6. Use the command line option called forks to run the same ad-hoc command with a parallelism of 7.
7. Run the same command but use different no of servers with the forks option.

Share our Labs
Start Your Free Trial

We have the longest and most in depth courses about cloud and engineering topics on the web. All of our training content is included with every membership.