- name: yum install epel packages
yum: name=http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm state=present
failed: [ceph-osd1] => {"changed": true, "item": "", "rc": 1, "results": ["Loaded plugins: fastestmirror, security\nLoading mirror speeds from cached hostfile\n * base: ftp.osuosl.org\n * epel: linux.mirrors.es.net\n * extras: centosc5.centos.org\n * updates: centosz5.centos.org\n"]}
msg: Error: database disk image is malformed
At this point, it seems there is no way for me rerun the playbook to fix it because the yum repo info somehow got corrupted. Is there anyway to fix it? (Imagine there are tens of machines, I can't log into the machines and manually fix the repo by manually running yum commands)
If the above question sounds a reasonable question to Ansible, I'd like to go one step further. The idempotency is a goal for Ansible, how can I get it in a world that something weird could happen during software installation.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK5eLPQDsoKswy-S-xC5nBUdogCf4kvdi_UA7EPwBfqR%3DmMQcQ%40mail.gmail.com.