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.
For more options, visit https://groups.google.com/d/optout.