Create inventories and credentials and assign roles to teams that permit members of those teams to manage the new inventories.
Outcomes
Manage inventories.
Manage credentials.
Allow a team to run a playbook against an inventory.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that private automation hub and automation controller are installed and configured with any necessary resources created in previous exercises.
[student@workstation ~]$ lab start host-review
Procedure 3.3. Instructions
Create a new automation controller inventory called Dev within the Default organization. Use Development Inventory as the description. Navigate to https://controller.lab.example.com and log in as the admin user with redhat as the password.
Navigate to https://controller.lab.example.com and log in as the admin user with redhat as the password.
Navigate to → and then click . Select .
Create the new inventory using the following information, and then click .
| Field | Value |
|---|---|
Dev
| |
Development Inventory
| |
Create a host group called dev_servers in the Dev inventory. Use Development servers as the description.
Add two hosts with the hostnames servera.lab.example.com and serverb.lab.example.com to the dev_servers host group. Use Server A as the description for the servera.lab.example.com host and use Server B as the description for the serverb.lab.example.com host.
From the group details page, click the tab and then click . Select .
Create the servera.lab.example.com host and use Server A as the description.
Click .
Return to the group details page. Navigate to → and then click the link for the inventory. Click the tab and then click the link for the group.
From the group details page, click the tab and then click . Select .
Create the serverb.lab.example.com host and use Server B as the description.
Click .
Grant the Admin role on the Dev inventory to the Developers team.
Navigate to → and then click the link for the inventory.
Click the tab and then click .
Select and then click .
Select and then click .
Select and then click . You are redirected to the list of permissions for the Dev inventory, which now shows that all members of the Developers team are assigned the Admin role on the Dev inventory.
Create a new machine credential with the following information:
Grant the Admin role on the Developers credential to the Developers team.
Navigate to → and then click the link for the credential.
Click the tab and then click .
Select and then click .
Select and then click .
Select and then click . You are redirected to the list of permissions for the Developers credential, which now shows that all members of the Developers team are assigned the Admin role on the Developers credential.