mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 01:02:07 +08:00
Use the package: module
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
|
||||
tasks:
|
||||
- name: clean all metadata
|
||||
command: dnf clean all
|
||||
command: yum clean all
|
||||
check_mode: no
|
||||
- name: dnf update odcs packages from main repo
|
||||
dnf: name={{item}} state=latest
|
||||
- name: update odcs packages from main repo
|
||||
package: name={{item}} state=latest
|
||||
when: not testing
|
||||
with_items:
|
||||
- odcs
|
||||
@@ -34,10 +34,10 @@
|
||||
|
||||
tasks:
|
||||
- name: clean all metadata
|
||||
command: dnf clean all
|
||||
command: yum clean all
|
||||
check_mode: no
|
||||
- name: dnf update odcs packages from main repo
|
||||
dnf: name={{item}} state=latest
|
||||
- name: update odcs packages from main repo
|
||||
package: name={{item}} state=latest
|
||||
when: not testing
|
||||
with_items:
|
||||
- odcs
|
||||
|
||||
Reference in New Issue
Block a user