# I want to use the "target" also as a variable not just for hosts file

**URL:** <https://forum.ansible.com/t/i-want-to-use-the-target-also-as-a-variable-not-just-for-hosts-file/22890>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 26, 2016, 3:07pm UTC](https://forum.ansible.com/t/i-want-to-use-the-target-also-as-a-variable-not-just-for-hosts-file/22890 "2016-10-26T15:07:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gad](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@Gad](https://forum.ansible.com/u/Gad)\
**Post date:** [October 26, 2016, 3:07pm UTC](https://forum.ansible.com/t/i-want-to-use-the-target-also-as-a-variable-not-just-for-hosts-file/22890/1 "2016-10-26T15:07:07Z")

</div>

ansible-playbook msi\_install.yml -vvv

The problems( in red)

- the find command is OK
- but instead of getting the value of the target host like “199.121.121.1” i am getting “win\_host1”
- where should I define the varible “repoPath” i have few more variable related only for the localhost like “repoReleasePath” etc…(alll mounted in linux to windows)

file name: win\_global.yml
