ansible does not recognize parameter "stat"

55 views
Skip to first unread message

Guohua Ouyang

unread,
Jun 29, 2015, 11:41:34 AM6/29/15
to ansible...@googlegroups.com
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

Guohua Ouyang

unread,
Jun 30, 2015, 12:52:15 AM6/30/15
to ansible...@googlegroups.com
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.



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/827da7ea-3f7c-4545-bf99-99a72f4897c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages