In this guided exercise, you will use Red Hat Ansible Tower to create an organization named FooBar and an inventory for the three-tier, hierarchical topology network used by the FooBar organization.
Outcomes
You should be able to:
Create an organization in Red Hat Ansible Tower.
Create an inventory in Red Hat Ansible Tower.
Add a host group to the inventory you created.
Add child groups to a parent group.
Add hosts to groups.
Open Firefox on the workstation VM.
Log in to Ansible Tower at http://tower.lab.example.com as the user admin and using student as the password.
Create an organization named FooBar.
Click the Settings icon (the gear) in the administration toolbar to display the list of administrative interfaces.
Select ORGANIZATIONS.
Click to create a new organization.
Set NAME to FooBar and click .
Create an inventory named foobar.
Click the INVENTORIES navigation link at the top of the screen.
Create the new inventory. On the INVENTORIES screen, click and select (not ). A smart inventory is a collection of hosts defined by a stored search.
On the NEW INVENTORY screen, the inventory NAME and ORGANIZATION fields are required.
Set NAME to foobar.
Set ORGANIZATION to FooBar.
Click .
Add a host group to the inventory you created.
Add a group named network to the foobar inventory.
On the foobar inventory detail screen, select , and then click .
On the CREATE GROUP screen, enter network in the NAME field.
Click to finalize the addition of the group to the inventory.
When you create a group, the DETAILS panel of the CREATE GROUP screen has a VARIABLES field.
The format of the VARIABLES field defaults to YAML.
To associate variables with a group, define them in the VARIABLES field using the key: value format.
You can add variables to existing groups by navigating to the DETAILS panel for the group and adding them to the VARIABLES field.
Add child groups to a parent group.
Add the access, aggregation and core groups as child groups of the network group just added to the inventory.
On the foobar inventory detail screen, click the network group link.
On the network group DETAILS screen, select and then click , selecting .
On the CREATE GROUP screen, enter access in the NAME field.
Click to finalize the addition of the child group to the inventory.
On the network group GROUPS screen, click , selecting .
On the CREATE GROUP screen, enter aggregation in the NAME field.
Click to finalize the addition of the child group to the inventory.
On the network group GROUPS screen, click , selecting .
On the CREATE GROUP screen, enter core in the NAME field.
Click to finalize the addition of the child group to the inventory.
Add hosts to groups.
Add acc01 and acc02 to the access group just added to the inventory.
On GROUPS panel of the INVENTORIES / foobar / GROUPS / network screen (ASSOCIATED GROUPS), click the access link in the list of GROUPS.
Select the panel.
Click and select .
On the CREATE HOST screen, enter acc01 in the HOST NAME field.
Click to finalize the addition of the host to the child group.
On the panel of the INVENTORIES / foobar / GROUPS / access screen (ASSOCIATED HOSTS), click and select .
On the CREATE HOST screen, enter acc02 in the HOST NAME field.
Click to finalize the addition of the host to the child group.
Add agg01 and agg02 to the aggregation group.
Click INVENTORIES / foobar / GROUPS in the breadcrumbs link to go to the foobar GROUPS screen.
Click the network link in the GROUPS list to go to the GROUPS panel on the INVENTORIES / foobar / GROUPS / network screen (ASSOCIATED GROUPS).
Click the aggregation link in the list of GROUPS to go to the GROUPS panel on the INVENTORIES / foobar / GROUPS / aggregation screen (ASSOCIATED GROUPS).
Click to display the panel (ASSOCIATED HOSTS).
Click and select .
In , enter agg01.
Click to finalize the addition of the host to the group.
Click and select .
In , enter agg02.
Click to finalize the addition of the host to the group.
Add cor01 and cor02 to the core group.
Click INVENTORIES / foobar / GROUPS in the breadcrumbs link to go to the foobar GROUPS screen.
Click the network link in the GROUPS list to go to the GROUPS panel on the INVENTORIES / foobar / GROUPS / network screen (ASSOCIATED GROUPS).
Click the core link in the list of GROUPS to go to the GROUPS panel on the INVENTORIES / foobar / GROUPS / core screen (ASSOCIATED GROUPS).
Click to display the HOSTS panel (ASSOCIATED HOSTS).
Click and select .
In HOST NAME, enter cor01.
Click to finalize the addition of the host to the group.
Click and select .
In HOST NAME, enter cor02.
Click to finalize the addition of the host to the group.
This concludes the guided exercise.