...
- Connect to Ansible
- Disconnect from Ansible
- Check Host
- Inventory Create
- Inventory Delete
- Inventory Create
- Inventory Update
- Script Execution
...
- Connection (text box editor type) (type: object): the Ansible Connection object. The output parameter from Connect To Ansible activity should be used as Input here.
- Username Hosts (text box editor type) (type: stringString[]): enter hosts array of strings .E.g. New String() {"hostname1", "hostname2"}
...
If you only wish to extract a specific element from the list, use Get KeyValuePair activity based on Index or Key value:
Inventory Create
This activity adds the specified groups and/or hosts to the inventory.
Activity Parameters
The Inventory Create activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Connection (text box editor type) (type: object): the Ansible Connection object. The output parameter from Connect To Ansible activity should be used as Input here.
- Group (text box editor type) (type: string): enter group name to be created. E.g. Flowster. If the group does not exist, it will be automatically created.
- Hosts (collection editor type) (type: string): enter the hosts associated with machines IP . E.g. host1 and machine IP 10.201.0.45
The Read Only Output variable are the possible output values that the activity will provide:
- Output (type: List <KeyValuePair <String,String>>): outputs a list of KeyValuePair of group→host for each host added to the inventory.