Error using async options when the file module is used in Ansible 2.1

Hi all,

I’m trying to run my old playbooks (they work on Ansible 1.9) that have some async tasks in Ansible 2.1. The resources involved in the issue are in http://pastie.org/private/o5obpof0vcmtukefprzeq

If I run the playbook “playtest.yml” with Ansible 1.9 it works fine, but it doesn’t work in the case of Ansible 2.1 throwing the error shown in the pastie.

What am I doing wrong?, can it be a bug?

Thanks,