# Windows wait\_for module

**URL:** <https://forum.ansible.com/t/windows-wait-for-module/22821>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [October 18, 2016, 8:38pm UTC](https://forum.ansible.com/t/windows-wait-for-module/22821 "2016-10-18T20:38:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.northrop.oz](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@paul.northrop.oz](https://forum.ansible.com/u/paul.northrop.oz)\
**Post date:** [October 18, 2016, 8:38pm UTC](https://forum.ansible.com/t/windows-wait-for-module/22821/1 "2016-10-18T20:38:02Z")

</div>

Hi,

I have developed a Windows version of the wait\_for module that mimics _part_ of functionality of the Linux wait\_for module.

Currently my module is capable of the following:

- wait for the existence of a file (path parameter) when state=present

- wait for a file (set by path parameter) to not exist when state=absent

- wait for a file (set by path parameter) to contain a string matching a regular expression (set by search\_regex parameter)

I would like to share this with the community to enable others to add more functionality and to reuse what i have done so far.

Should I create a pull request to contribute this?

Also, if i have multiple modules to share, should this be done in one pull request or multiple? Sorry for the dumb question but i am new to this 🙂

Thanks  
Paul

---

<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:** [October 19, 2016, 8:52am UTC](https://forum.ansible.com/t/windows-wait-for-module/22821/2 "2016-10-19T08:52:20Z")

</div>

Hi,

Definitely create a pull request, its the best way to get your code reviewed by others (and the only way to get it included with ansible). Definitely worth working your way through this if you haven’t read it yet - [http://docs.ansible.com/ansible/developing\_modules.html](http://docs.ansible.com/ansible/developing_modules.html)

Also, please create one pull request per module.

Many thanks.

Jon

---

<div class="post-metadata">

**Author:** ![Matt\_Davis](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Post date:** [October 20, 2016, 11:50pm UTC](https://forum.ansible.com/t/windows-wait-for-module/22821/3 "2016-10-20T23:50:07Z")

</div>

Yeah, I had that one on my list as a planned core module build for 2.3, so if you’ve got a decent start on one, let’s see it!

-Matt

---

<div class="post-metadata">

**Author:** ![paul.northrop.oz](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@paul.northrop.oz](https://forum.ansible.com/u/paul.northrop.oz)\
**Post date:** [October 21, 2016, 12:49am UTC](https://forum.ansible.com/t/windows-wait-for-module/22821/4 "2016-10-21T00:49:21Z")

</div>

As I work for a software vendor, I have to wait for approval before I do the pull request.

I have started that process, and as soon as I have it, I will share my work.

I have included the generated doc page to whet the appetite and explain where i have got to.

> **(attachments)**
>
> [win\_wait\_for.md](https://forum.ansible.com/uploads/short-url/si1fC0CoWpTz3xAggRzw1tCZoVM.md) (2.73 KB)

---

<div class="post-metadata">

**Author:** ![paul.northrop.oz](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@paul.northrop.oz](https://forum.ansible.com/u/paul.northrop.oz)\
**Post date:** [November 7, 2016, 7:05pm UTC](https://forum.ansible.com/t/windows-wait-for-module/22821/5 "2016-11-07T19:05:51Z")

</div>

I have approval from my company and will create the pull request today.

---

<div class="post-metadata">

**Author:** ![paul.northrop.oz](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@paul.northrop.oz](https://forum.ansible.com/u/paul.northrop.oz)\
**Post date:** [November 7, 2016, 8:33pm UTC](https://forum.ansible.com/t/windows-wait-for-module/22821/6 "2016-11-07T20:33:57Z")

</div>

PR created: [https://github.com/ansible/ansible-modules-extras/pull/3385](https://github.com/ansible/ansible-modules-extras/pull/3385)
