dnf is Fedora 22+
This commit is contained in:
parent
11fb2433ba
commit
9f5318d299
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
- 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 > 22
|
||||
|
||||
- name: dnf update {{ package }} from main repo
|
||||
dnf: name="{{ package }}" state=latest
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
- 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 > 22
|
||||
|
||||
- name: dnf update {{ package }} from testing repo
|
||||
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue