# ansible does not recognize parameter "stat"

**URL:** <https://forum.ansible.com/t/ansible-does-not-recognize-parameter-stat/18633>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [June 29, 2015, 1:24pm UTC](https://forum.ansible.com/t/ansible-does-not-recognize-parameter-stat/18633 "2015-06-29T13:24:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guohua\_Ouyang1](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Guohua\_Ouyang1](https://forum.ansible.com/u/Guohua_Ouyang1)\
**Post date:** [June 29, 2015, 1:24pm UTC](https://forum.ansible.com/t/ansible-does-not-recognize-parameter-stat/18633/1 "2015-06-29T13:24:51Z")

</div>

Hello,

I meet an odd issue is that ansible does not recognize parameter “stat” on one of my hosts, but it work on another host.

Checked that /usr/lib/python2.7/site-packages/ansible/modules/core/files/stat.py is existed.

[guohua@ghua kubernetes-ansible]$ rpm -q ansible  
ansible-1.9.1-2.fc22.noarch

[guohua@ghua kubernetes-ansible]$ ansible-playbook -vvv -i hosts setup.yml  
ERROR: stat is not a legal parameter in an Ansible task or handler

it’s confuse me why it just does not work on one of my hosts, and I don’t know how to debug since there is no much clue in the error.

Regards.  
guohua

---

<div class="post-metadata">

**Author:** ![Guohua\_Ouyang](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@Guohua\_Ouyang](https://forum.ansible.com/u/Guohua_Ouyang)\
**Post date:** [June 30, 2015, 12:01am UTC](https://forum.ansible.com/t/ansible-does-not-recognize-parameter-stat/18633/2 "2015-06-30T00:01:14Z")

</div>

figure it out, there is  
/usr/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg, which may cause  
some unexpected behaviour.  
after delete that directory and reinstall ansible, the problem is gone.
