# inventory file for playbooks with only uri calls

**URL:** <https://forum.ansible.com/t/inventory-file-for-playbooks-with-only-uri-calls/31137>\
**Category:** Ansible Project\
**Created:** [August 27, 2019, 1:23pm UTC](https://forum.ansible.com/t/inventory-file-for-playbooks-with-only-uri-calls/31137 "2019-08-27T13:23:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Britton](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Post date:** [August 27, 2019, 1:23pm UTC](https://forum.ansible.com/t/inventory-file-for-playbooks-with-only-uri-calls/31137/1 "2019-08-27T13:23:12Z")

</div>

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/](https://10.123.123.123:23351/ConfigurationManager/v1/)”  
`
