From: Andrew Schoen Date: Thu, 27 Aug 2015 17:43:49 +0000 (-0500) Subject: common: set timeout in /etc/yum.conf X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bf73328e0d2ae309d5e31ab571bb708fbfd57538;p=ceph-cm-ansible.git common: set timeout in /etc/yum.conf 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 --- diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml index bed99f2a..b674970e 100644 --- a/roles/common/defaults/main.yml +++ b/roles/common/defaults/main.yml @@ -28,3 +28,4 @@ epel_repos: gpgcheck: 0 enable_epel: true +yum_timeout: 300 diff --git a/roles/common/tasks/epel.yml b/roles/common/tasks/epel.yml index 4b73fcd5..fcf98567 100644 --- a/roles/common/tasks/epel.yml +++ b/roles/common/tasks/epel.yml @@ -1,4 +1,11 @@ --- +- 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