Parameters of Ansible Inventory activity
You can set the parameter values for the Ansible inventory from the Composition tab > Inventory activity > Inventory and Hosts tabs.
Procedure
- Select the activity in the Composition tab. The parameters are displayed in the Activity details pane.
- In the Inventory tab,
- Inventory Name - Enter the inventory name suffix. The suffix is used while creating the inventory on the Tower. The inventory is created as ActivityInstanceName_suffix.
- The Managed services only supports Default Organization at this time.
- Group - Based on the Ansible playbook, an inventory can target the multiple groups to have groups to host mapping depending on the Ansible playbook functionality.
- Click Add Group to add the a new group. Enter the name of the group and click
. The newly created group is added in the drop-down list.
- Click Delete Group to delete the selected group from the drop-down list.
- Click Add Group to add the a new group. Enter the name of the group and click
- Extra Variables - These extra variables are the required extra variables by an inventory in the Ansible runbook.
- Click Add Extra Vars to add extra variables. Click
after entering the Key and Value.
- Click Delete Extra Vars to delete the selected extra variable from the drop-down list.
- Click Add Extra Vars to add extra variables. Click
- In Hosts tab,
- Select the Group from the drop-down list.
- Host - The hosts are added for the selected group.
- Enter a name of the host or the comma separated list of hosts in the Host field. Click Add Host to add new host. The newly created host is added in the drop-down list. The list of hosts is displayed at the bottom of the page.
- Click Link Parameter to link to the existing Managed services input parameter.