local_action calling python script in ansible 2.1

Hi All,

I am using the below code with Ansible 1.9 and works well:

  • name: Gether Info
    local_action: Infos.py host={{ hostname }} user={{ username }} password={{ mypassword }} vm_name={{ myhostname }}

All the above variables coming from Ansible Vault file. I upgraded my Ansible version to 2.1 and it is not working. Can some one through light on the issue?

Thanks
Mohan L