Please paste text rather than include screenshots on this mailing list.
It's far easier for everyone reading it.

Thanks!

It sounds like you might have set ansible_python_interpreter to point at a
non-system python, or perhaps are running locally against a virtualenv,
where yum isn't available.  I'd suggest not doing these things, as you need
to access the system python installed yum to proceed.



On Thu, Sep 25, 2014 at 10:00 PM, Fe Zheng <[email protected]> wrote:

> hi
>     I faced a problem when use ansible module yum.
>     my hosts file /etc/ansible/hosts add
>     eg:10.255.22.102
> ansible_python_interpreter=/usr/local/python2.7/bin/python
>     this new interpreter is python2.7
>     when i came back to use yum
>
>     - name: yum install ntp
>     action: yum name=ntp state=present
>     sudo: yes
>     tags: ntpd
>     when: ansible_distribution != 'Suse'
>
>    problem appear
>
>
> <https://lh3.googleusercontent.com/-bdN_rXY4H1s/VCTImo2AXQI/AAAAAAAAABg/5iMfOjH0tz8/s1600/QQ%E5%9B%BE%E7%89%8720140926095926.jpg>
>
>   task failed to parsed
>   no module named yum
>
>   how to solve ,please help
>
> --
> 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/08b4b3c8-d672-48c9-9ecf-4da6b392a004%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/08b4b3c8-d672-48c9-9ecf-4da6b392a004%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/CA%2BnsWgw65TbDrAJW%3DUzgVzPmXqdA8g1YjBW7wie_2%2Bx3Aw%2Bz9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to