# home directory for Ansible in windows machine using cygwin

**URL:** <https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [December 23, 2019, 5:55am UTC](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864 "2019-12-23T05:55:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarathy\_shenoy](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@aarathy\_shenoy](https://forum.ansible.com/u/aarathy_shenoy)\
**Post date:** [December 23, 2019, 5:55am UTC](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864/1 "2019-12-23T05:55:21Z")

</div>

I am new to ansible.  
I have installed Ansible in a windows 10 machine with the help of cwygwin.Ansible is running now.  
Is the home directory of Ansible getting set while the installation happens?  
Can anyone help me in setting the home directory where I can keep my playbooks to execute?  
Is it possible to execute the playbook from a location other than the home directory?

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [December 23, 2019, 7:59am UTC](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864/2 "2019-12-23T07:59:44Z")

</div>

What do you mean by home directory?

I think you can keep your playbook anywhere and it will work until you point to the correct file.

**ansible-playbook -i**

EX: ansible-playbook -i myinventory myplaybook will work if myinventory myplaybook are in current directory or you can specific the absolute path to those directories.

---

<div class="post-metadata">

**Author:** ![aarathy\_shenoy](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@aarathy\_shenoy](https://forum.ansible.com/u/aarathy_shenoy)\
**Post date:** [December 23, 2019, 8:39am UTC](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864/3 "2019-12-23T08:39:56Z")

</div>

inventory files are just for mentioning the host details am I right?  
so if I wish to execute a playbook from D drive of my windows machine will the below syntax be correct?

$ ansible playbook “d:\POC\POC.yml”

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [December 24, 2019, 12:04am UTC](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864/4 "2019-12-24T00:04:14Z")

</div>

If you are using Windows 10, use WSL not Cygwin. WSL is a lot more compatible than Cygwin so I highly recommend you use that instead. In any case to access a Windows drive from cygwin the path is '/cygdrive//path`, so in your case it would be ‘/cygdrive/d/POC/POC.yml’.
