Ansible 2.2 - async mode with windows hosts

304 views
Skip to first unread message

Fabrice Perko

unread,
Dec 6, 2016, 10:40:48 AM12/6/16
to Ansible Project

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

Fabrice Perko

unread,
Dec 6, 2016, 11:06:42 AM12/6/16
to Ansible Project

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

Reply all
Reply to author
Forward
0 new messages