ansible does not recognize parameter "stat"

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

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.