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.
On Mon, Jun 29, 2015 at 9:24 PM, Guohua Ouyang <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/827da7ea-3f7c-4545-bf99-99a72f4897c5%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/827da7ea-3f7c-4545-bf99-99a72f4897c5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMLHpLc2nXU3QH5KZJPaR1Lf2ftzD06y27nsG8y%3DEeO5yaEdeg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
