Clean yum package cache before updating all packages

This commit is contained in:
hybris 2019-07-25 13:47:02 +02:00
parent a847074aae
commit d4cb32b9c3
1 changed files with 8 additions and 1 deletions

View File

@ -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: