yum module: failed to parse: SUDO-SUCCESS-owdhaivbcxarzwabxjtblacdvifhvhtk

Hi all,

I’m getting the following error when trying to execute the yum module to install an RPM:

fatal: [dev.eddgrant.com] => failed to parse: SUDO-SUCCESS-owdhaivbcxarzwabxjtblacdvifhvhtk
Traceback (most recent call last):
File “/home/ansible/.ansible/tmp/ansible-1390233348.21-255866138675253/yum”, line 1766, in ?
main()
File “/home/ansible/.ansible/tmp/ansible-1390233348.21-255866138675253/yum”, line 737, in main
disablerepo, disable_gpg_check)
File “/home/ansible/.ansible/tmp/ansible-1390233348.21-255866138675253/yum”, line 659, in ensure
my = yum_base(conf_file)
File “/home/ansible/.ansible/tmp/ansible-1390233348.21-255866138675253/yum”, line 123, in yum_base
my.preconf.debuglevel=0
AttributeError: ‘YumBase’ object has no attribute ‘preconf’

The task which causes this is as follows:

  • name: Install Apache HTTPD Package
    yum: name=httpd state=latest

With the exception of the yum module all other tasks/ plays executed against this host complete successfully.

The system I’m running this from is: Ubuntu 12.10 (64 bit) running ansible 1.4.3
The system being provisioned is: CentOS 5.4 32 bit using JSON module: python-simplejson i386 Version: 2.0.9 Release: 1.el5.rf

Anyone have any idea what might cause this? Let me know if there’s any other diagnostic information I can provide.

Cheers,

Edd

This appears to be an issue with an older version of yum on CentOS 5. Could you open a github issue for this please?

Thanks!

D’oh - thanks for the quick response. Have raised an issue as requested:

https://github.com/ansible/ansible/issues/5700

Any ideas of a workaround at this point? I could always fall back to the command/ shell module if not.

Cheers.

Edd