...
In order to iterate through the list of hosts and extract the key = host name and value = ansible result in json format, first use an iteration activity, e.g. Custom ForEach to loop through the list and extract the key and value for each host using Get KeyValuePair activity:
The value stored in output_Value variable is returned in json format. Use GetJSONNodeValue activity to extract the value of a specified node.
Inventory Create
...