I am working on a set of playbooks for a hitachi storage automation. They utilize a cmrest server, that manages the connection to each storage array. So all of the tasks are ran on the localhost to the same url base, but there is a var in the path that indicates what storage array to run against.
I was looking at the inventory file as an option to set the vars for each storage array. Each storage array would be a group, but since they all have localhost, the var overwrites because it belongs to multiple groups.
Does anyone have an idea of how i can achieve this or something similar to this?
Here is an example of the inventory file i started with:
`
[amsterdam]
localhost
[amsterdam:vars]
ui=886000428027
hostss=esx001,esx002,esx003
[singapore]
localhost
[singapore:vars]
ui=44444
[all:vars]
baseurl=“https://10.123.123.123:23351/ConfigurationManager/v1/”
`