We were getting timeouts when using epel mirrors and the default timeout value
is only 30 seconds which is not long enough for heavily used mirrors to
respond.
See: http://tracker.ceph.com/issues/12778
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
gpgcheck: 0
enable_epel: true
+yum_timeout: 300
---
+- name: Increase the yum timeout.
+ lineinfile:
+ dest: /etc/yum.conf
+ line: "timeout={{ yum_timeout }}"
+ regexp: "^timeout="
+ state: present
+
- name: Configure epel repos in /etc/yum.repos.d/
template:
src: yum_repo.j2