# local\_action calling python script in ansible 2.1

**URL:** <https://forum.ansible.com/t/local-action-calling-python-script-in-ansible-2-1/22090>\
**Category:** Ansible Project\
**Created:** [July 22, 2016, 3:28pm UTC](https://forum.ansible.com/t/local-action-calling-python-script-in-ansible-2-1/22090 "2016-07-22T15:28:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan\_L](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Mohan\_L](https://forum.ansible.com/u/Mohan_L)\
**Post date:** [July 22, 2016, 3:28pm UTC](https://forum.ansible.com/t/local-action-calling-python-script-in-ansible-2-1/22090/1 "2016-07-22T15:28:18Z")

</div>

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
