error message with adhoc command from the command line

945 views
Skip to first unread message

Daley Okuwa

unread,
May 30, 2017, 3:32:43 AM5/30/17
to Ansible Project
kuwa@ubuntu:/etc/ansible$ ansible all -i hosts -u dokuwa1 --ask-pass -m yum -a "name=httpd state=present" --become-user=root --ask-become-pass
SSH password:
SUDO password[defaults to SSH password]:
192.168.85.129 | FAILED! => {
    "changed": false,
    "failed": true,
    "msg": "python2 bindings for rpm are needed for this module. python2 yum module is needed for this  module"
Thanks

B Holmes

unread,
Jul 6, 2017, 4:09:29 PM7/6/17
to Ansible Project
I've hit this problem too, ever find a solution?

Daley Okuwa

unread,
Jul 7, 2017, 3:44:09 AM7/7/17
to ansible...@googlegroups.com
hello

you need to use yum to install the python libraries
please do a rpm -qa | grep python  if you are using red hat 

thanks 

Daley



From: B Holmes <bdhol...@gmail.com>
To: Ansible Project <ansible...@googlegroups.com>
Sent: Thursday, 6 July 2017, 21:09
Subject: [ansible-project] Re: error message with adhoc command from the command line

--
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/06b62515-8cf7-4bdf-a64e-6df42c58d264%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


B Holmes

unread,
Jul 17, 2017, 3:12:56 PM7/17/17
to Ansible Project, dokuw...@yahoo.co.uk
Hi Daley,
 
rpm -qa | grep python    

just gives the installed packages with python in the name.  Any idea which is missing to fix this error?  python2 yum module is installed.

Many thanks
Reply all
Reply to author
Forward
0 new messages