Replace yum by dnf since packages now runs on Fedora

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2018-02-14 10:04:32 +01:00
parent 5885e444be
commit 8c6165ecbb

View file

@ -12,13 +12,13 @@
tasks: tasks:
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%} - name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%} command: dnf clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%}
check_mode: no check_mode: no
- name: yum update fedora-packages packages from main repo - name: dnf update fedora-packages packages from main repo
yum: name="fedora-packages" state=latest dnf: name="fedora-packages" state=latest
when: not testing when: not testing
- name: yum update fedora-packages packages from testing repo - name: dnf update fedora-packages packages from testing repo
yum: name="fedora-packages" state=latest enablerepo=infrastructure-tags-stg dnf: name="fedora-packages" state=latest enablerepo=infrastructure-tags-stg
when: testing when: testing
- name: verify the config and restart it - name: verify the config and restart it