Clean yum package cache before updating all packages
This commit is contained in:
parent
a847074aae
commit
d4cb32b9c3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue