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
|
- name: upgrade all packages
|
||||||
yum:
|
yum:
|
||||||
@ -71,7 +78,7 @@
|
|||||||
- name: clear yum package cache
|
- name: clear yum package cache
|
||||||
shell: yum clean all
|
shell: yum clean all
|
||||||
args:
|
args:
|
||||||
warn: false # https://github.com/ansible/ansible/pull/31450#issuecomment-352889579
|
warn: false
|
||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user