Run dnf clean before we call dnf update
This commit is contained in:
parent
65e436e01f
commit
1a87b50a23
1 changed files with 8 additions and 0 deletions
|
@ -23,10 +23,18 @@
|
|||
yum: name="{{ package }}" state=latest enablerepo=infrastructure-testing update_cache=yes
|
||||
when: testing and ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: dnf clean all (since we can't do it when updating)
|
||||
command: dnf clean all
|
||||
when: not testing and ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: dnf update {{ package }} from main repo
|
||||
dnf: name="{{ package }}" state=latest
|
||||
when: not testing and ansible_distribution_major_version|int > 22
|
||||
|
||||
- name: dnf clean all (since we can't do it when updating)
|
||||
command: dnf clean all --enablerepo=infrastructure-testing
|
||||
when: testing and ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: dnf update {{ package }} from testing repo
|
||||
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing
|
||||
when: testing and ansible_distribution_major_version|int > 22
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue