From: David Galloway Date: Fri, 10 Mar 2017 18:57:03 +0000 (-0500) Subject: common: Clean apt cache before updating it X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F312%2Fhead;p=ceph-cm-ansible.git common: Clean apt cache before updating it This is the first apt transaction that gets run in the common role. Fixes: http://tracker.ceph.com/issues/15439 Signed-off-by: David Galloway --- diff --git a/roles/common/tasks/kerberos.yml b/roles/common/tasks/kerberos.yml index f4b8453a..1e5bc6ae 100644 --- a/roles/common/tasks/kerberos.yml +++ b/roles/common/tasks/kerberos.yml @@ -7,7 +7,11 @@ state: present when: ansible_os_family == 'RedHat' -- name: Update apt cache. +# See http://tracker.ceph.com/issues/15439 +- name: Clean apt cache + command: apt-get clean + +- name: Update apt cache apt: update_cache: yes # Register and retry to work around transient http issues