In this exercise, we are going to configure Red Hat Ansible Tower, so that we can run a playbook.
There are a number of constructs in the Ansible Tower UI that enable multi-tenancy, notifications, scheduling, etc. However, we are only going to focus on the key concepts required for this workshop today.
Credentials
Projects
Inventory
Job Template
To log in, use the username admin
and and the password provided by your instructor.
Credentials are utilized by Ansible Tower for authentication when launching jobs against machines, synchronizing with inventory sources, and importing project content from a version control system.
There are many types of credentials including machine, network, and various cloud providers. In this workshop, we are using a machine credential.
Select CREDENTIALS, from the left-side menu bar.
You will see a lit of credentials, like the following:
Click the pencil icon to access the details of the Workshop Credential
credential. Redundant, aren’t we?
Scroll down, and review the rest of the credential data:
Select to exit.
A Project is a logical collection of Ansible playbooks, represented in Ansible Tower. You can manage playbooks and playbook directories, by either placing them manually under the Project Base Path on your Ansible Tower server, or by placing your playbooks into a source code management (SCM) system supported by Ansible Tower, including Git, Subversion, and Mercurial.
Select from the left-side menu.
Review the list of projects, and then click on Ansible Workshop Project
, to see what it contains:
Review the details of the project:
Select to exit.
An inventory is a collection of hosts, against which jobs may be launched. Inventories are divided into groups and these groups contain the actual hosts.
Groups may be sourced manually, by entering host names into Ansible Tower, or from one of Ansible Tower’s supported cloud providers.
An Inventory can also be imported into Ansible Tower using the tower-manage
command. This is how we are going to add an inventory for this workshop.
Select from the left-side menu.
Click on Ansible Workshop Inventory
to see the details of the inventory:
You can click on to see the list of hosts:
You can click on to see the list of groups:
At this point, we are working with our basic configuration of Ansible Tower. In Exercise 1.1, we will be solely focused on creating and running a job template so you can see Ansible Tower in action.
Domain | ||
Workshop | ||
Student ID |