From d4cb32b9c3bdafba134c2098bf5781c3cc79a372 Mon Sep 17 00:00:00 2001 From: hybris Date: Thu, 25 Jul 2019 13:47:02 +0200 Subject: [PATCH] Clean yum package cache before updating all packages --- roles/kubernetes/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes/tasks/main.yml b/roles/kubernetes/tasks/main.yml index be19e0b..9aaa28c 100644 --- a/roles/kubernetes/tasks/main.yml +++ b/roles/kubernetes/tasks/main.yml @@ -1,4 +1,11 @@ --- +- name: clear yum package cache + shell: "{{ item }}" + args: + warn: false + with_items: + - yum clean all + - yum makecache - name: upgrade all packages yum: @@ -71,7 +78,7 @@ - name: clear yum package cache shell: yum clean all args: - warn: false # https://github.com/ansible/ansible/pull/31450#issuecomment-352889579 + warn: false - name: install packages package: