Ansible Tower Setup Demo

To help you get started, this demo will show you how to run your first Tower Job.

 

Step 1: Create an Inventory

First, create an Inventory with a sample Host. In this demo, the Host will be local.

1. Click on INVENTORIES in the top menu.

2. Once on the Inventories page, click the green +ADD button to add an Inventory.

3. Name the Inventory and click the green SAVE button.

4. On the next page click the green +ADD HOST button to add a new Host.

5. Name the Host, add VARIABLES and click the green SAVE button.

STEP 2: CREATE A PROJECT

Next, create a Project where Tower will pull the Playbook from.

In this example, the Playbook comes from a GitHub repository.

1. Click on PROJECTS in the top menu.

2. Once on the Projects page, click the green +ADD button to add a Project.

3. Name the Project, select SCM TYPE, add SOURCE DETAILS and click the green SAVE button.

STEP 3: ADD A CREDENTIAL

In order to run Playbooks, add a Credential to tell Tower how to log into the target system.

In this example, a blank machine Credential is added. A Username, Password and SSH key can just as easily be added.

1. Click the gear icon in top menu, then select CREDENTIALS.

2. Once on the Credentials page, click the green +ADD button to add a Credential.

3. Name the Credential, select TYPE and click the green SAVE button.

STEP 4: CREATE A JOB TEMPLATE

Now that all components are built, create a Job Template to tell Tower how to run the Playbook.

1. Click on JOB TEMPLATES in the top menu.

2. Once on the Job Templates page, click the green +ADD button to add a Job Template.

3. Name the Job Template.

INVENTORY and PROJECT will be added since only one of each has been created in Tower.

tower-setup-guide-15

4. Select JOB TYPE, choose a PLAYBOOK and click the green SAVE button.

5. Click on JOB TEMPLATES in the top menu and click the rocket ship icon to run the Job.