From fea541840c3596a599068ba6e757c9e3617eee6d Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 10 Mar 2017 13:57:03 -0500 Subject: [PATCH] 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 --- roles/common/tasks/kerberos.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/common/tasks/kerberos.yml b/roles/common/tasks/kerberos.yml index f4b8453..1e5bc6a 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 -- 2.39.5