mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 17:02:20 +08:00
Let's reflect the tool used
This commit is contained in:
@@ -23,11 +23,11 @@
|
||||
yum: name="{{ package }}" state=latest enablerepo=infrastructure-testing update_cache=yes
|
||||
when: testing and ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: yum update {{ package }} from main repo
|
||||
- name: dnf update {{ package }} from main repo
|
||||
dnf: name="{{ package }}" state=latest
|
||||
when: not testing and ansible_distribution_major_version|int > 22
|
||||
|
||||
- name: yum update {{ package }} from testing repo
|
||||
- name: dnf update {{ package }} from testing repo
|
||||
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing
|
||||
when: testing and ansible_distribution_major_version|int > 22
|
||||
|
||||
|
||||
Reference in New Issue
Block a user