TASK: [common | yum install epel packages] ************************************
failed: [ceph-osd1] => {“changed”: true, “item”: “”, “rc”: 1, “results”: [“Loaded plugins: fastestmirror, security\nDetermining fastest mirrors\nCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was\n14: PYCURL ERROR 6 - "Couldn’t resolve host ‘mirrorlist.centos.org’"\n”]}
msg: Error: Cannot find a valid baseurl for repo: base
I am running my playbook toward the vagrant vms on my laptop, so maybe my home network (bandwidth) caused the problem? I guess this is because I pointed to one URL and somehow it timed out (I have not clue).
Is there anyway to make this task more robust? Can yum module put a list of repos instead of pointing to a hardcoded URL?
---------------Related tasks in my playbook------------
- name: yum install epel packages
yum: name=http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm state=present