fixing more package install dnf/yum logic
This commit is contained in:
parent
bf03de72d0
commit
5d1b09d139
2 changed files with 5 additions and 5 deletions
|
@ -25,17 +25,17 @@
|
|||
|
||||
- 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
|
||||
when: not testing and ansible_distribution_major_version|int > 21
|
||||
|
||||
- name: dnf update {{ package }} from main repo
|
||||
dnf: name="{{ package }}" state=latest
|
||||
when: not testing and ansible_distribution_major_version|int > 22
|
||||
when: not testing and ansible_distribution_major_version|int > 21
|
||||
|
||||
- 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
|
||||
when: testing and ansible_distribution_major_version|int > 21
|
||||
|
||||
- name: dnf update {{ package }} from testing repo
|
||||
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing
|
||||
when: testing and ansible_distribution_major_version|int > 22
|
||||
when: testing and ansible_distribution_major_version|int > 21
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue