# v2 winrm integration tests; test\_win\_fetch; file module not found

**URL:** <https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [August 21, 2015, 6:04am UTC](https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078 "2015-08-21T06:04:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 21, 2015, 6:04am UTC](https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078/1 "2015-08-21T06:04:34Z")

</div>

Before I raise a bug report, can anyone confirm that they are able to run through the winrm integration tests.

Currently they are failing for me at the first step of test\_win\_fetch

test\_win\_fetch : clean out the test directory]

which is a pretty straightforward local action

- name: clean out the test directory  
local\_action: file name={{ output\_dir|mandatory }} state=absent  
run\_once: true

The error I’m getting is:

fatal: [win-testbox1]: FAILED! =\> {“failed”: true, “msg”: “ERROR! The module file was not found in configured module paths”}

ansible --version reports:

ansible 2.0.0 (devel 9bb95b5235) last updated 2015/08/21 06:47:52 (GMT +100)  
lib/ansible/modules/core: (detached HEAD 4721d6d8b5) last updated 2015/08/21 06:49:37 (GMT +100)  
lib/ansible/modules/extras: (detached HEAD 785cd24a02) last updated 2015/08/21 06:49:17 (GMT +100)  
v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/06/10 18:29:52 (GMT +100)  
v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/06/10 18:30:43 (GMT +100)  
config file = /etc/ansible/ansible.cfg  
configured module search path = /etc/ansible/library

My /etc/ansible/library currently contains no files, but wonder if having that set in my ansible.cfg is messing up the search path for modules. Not sure why it would affect this particular module though.

Anyone able to reproduce?

I’m pointing at a single Windows Server 2012 R2 instance (although that doesn’t seem to be relevant).

Many thanks,

Jon

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [August 23, 2015, 12:14am UTC](https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078/2 "2015-08-23T00:14:56Z")

</div>

I'm also seeing the same error -- there have been some local\_action /  
delegate\_to chances recently that could have broken something.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 23, 2015, 4:40pm UTC](https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078/3 "2015-08-23T16:40:29Z")

</div>

Ok thanks,

Raised as [https://github.com/ansible/ansible/issues/12056](https://github.com/ansible/ansible/issues/12056) so we can track it there.

Jon
