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/" -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/40a9c937-abb6-4e19-bf0b-648ef3b6b1c3%40googlegroups.com.
