# Ansible 2.2 - async mode with windows hosts

**URL:** <https://forum.ansible.com/t/ansible-2-2-async-mode-with-windows-hosts/23184>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [December 6, 2016, 3:40pm UTC](https://forum.ansible.com/t/ansible-2-2-async-mode-with-windows-hosts/23184 "2016-12-06T15:40:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrice.perko](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Post date:** [December 6, 2016, 3:40pm UTC](https://forum.ansible.com/t/ansible-2-2-async-mode-with-windows-hosts/23184/1 "2016-12-06T15:40:48Z")

</div>

Hello,

I use Ansible 2.2.0

It seems that asynchronous mode does not work for windows remote hosts.

The task does not fall into error, but the playbook does not go to the next task (start.bat lasts 3 hours…)

Example:

- name: “{{ role\_name }} - {{ playbook\_name }} - lancement du traitement”  
win\_shell: call start.bat  
args:  
chdir: “{{ repertoire\_traitement }}”  
executable: cmd  
async: 15  
poll: 0

Is my syntax wrong ?

Has anyone managed to make async mode work ?

If the asynchronous mode does not work for windows, is it planned to implement it in the futur ?

Regards,

Fabrice Perko

---

<div class="post-metadata">

**Author:** ![fabrice.perko](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Post date:** [December 6, 2016, 4:06pm UTC](https://forum.ansible.com/t/ansible-2-2-async-mode-with-windows-hosts/23184/2 "2016-12-06T16:06:41Z")

</div>

I finally found out that this is a problem.

This has been identified and corrected.

I tested the correction: it’s OK

cf. : [https://github.com/ansible/ansible-modules-core/issues/5596](https://github.com/ansible/ansible-modules-core/issues/5596)
