Bookmark this page

Guided Exercise: Navigating the Red Hat Ansible Tower Web Interface

In this exercise, you will navigate through and interact with the Project, Inventory, Credential, and Template screens in the Ansible Tower web interface and launch a Job.

Outcomes

You should be able to:

  • Identify the Demo Project that was created during the Ansible Tower installation.

  • Browse the Demo Inventory that was created during the Ansible Tower installation and determine its managed hosts.

  • View the details of the Demo Credential that was created during the Ansible Tower installation.

  • Determine the Inventory, Project, and Credential used by the Demo Job Template.

  • Successfully launch a Job.

Open a web browser on the workstation VM. Log in to http://tower.lab.example.com as user admin and using student as the password.

  1. Identify the Demo Project that was created during the Ansible Tower installation.

    1. Click the PROJECTS tab in the navigation menu to display the list of projects. You should see a project named Demo Project, which was created during the Ansible Tower installation.

    2. Click the Demo Project link to view the details of the Project.

    3. Look at the values of the SCM TYPE field and the SOURCE DETAILS section to determine the project's origin. The SCM TYPE is Git and the SCM URL is http://git.lab.example.com:3000/ansible/ansible-tower-samples.

  2. Browse the Demo Inventory that was created during the Ansible Tower installation and determine its managed hosts.

    1. Click INVENTORIES in the navigation menu to display the list of known inventories. You should see an inventory named Demo Inventory, which was created during the Ansible Tower installation.

    2. Click the Demo Inventory link to view the details of the inventory. Click HOSTS and you will see that the inventory contains just one host, localhost.

  3. View the details of the Demo Credential that was created during the Ansible Tower installation.

    1. Click the Settings icon (the gear) in the administration toolbar to display the list of administrative interfaces.

    2. Click CREDENTIALS to view the list of credentials.

    3. Click the Demo Credential link to view the details of the credential. The Demo Credential is a machine credential that uses the user name admin.

  4. Determine the Inventory, Project, and Credential used by the Demo Job Template.

    1. Identify the job template that was created during the Ansible Tower installation. Click TEMPLATES in the navigation menu to display the list of existing job templates. You should see a job template named Demo Job Template, which was created during the Ansible Tower installation.

    2. Click the Demo Job Template link to view the details of the Job Template.

    3. Look at the INVENTORY field. The Demo Job Template uses the Demo Inventory inventory.

    4. Look at the PROJECT field. The Demo Job Template uses the Demo Project project.

    5. Look at the PLAYBOOK field. The Job Template executes a hello_world.yml playbook.

    6. Look at the CREDENTIAL field. The Job Template uses the MACHINE: Demo Credential credential.

  5. Successfully launch a Job.

    1. Launch a job using the Demo Job Template.

      1. Exit the template details view by clicking the TEMPLATES link in the breadcrumb navigation menu near the top of the screen.

      2. On the TEMPLATES screen, click the rocket icon under the ACTIONS column of the Demo Job Template row. This launches a job using the parameters configured in the Demo Job Template template and redirects you to the job details screen. As the job executes, the details of the job execution as well as its output are displayed.

    2. Determine the outcome of the job execution.

      1. When the job has completed successfully, the STATUS value changes to Successful.

      2. Review the output of the job execution to determine which tasks were executed. The msg module successfully displayed a Hello World! message.

    3. Review the changes to the dashboard reflecting the job execution.

      1. Click TOWER in the upper-left corner of the screen to return to the dashboard.

      2. Review the JOB STATUS graph. The green line on the graph indicates the number of recent successful job executions.

      3. Review the RECENT JOB RUNS section. This section provides a list of the jobs recently executed as well as their results. The Demo Job Template entry indicates that the Job Template was used to execute a job. The green dot at the beginning of the entry indicates the successful completion of the executed job.

This concludes the guided exercise.

Revision: do457-2.5-4693601