fedimg: Replace the yum module by the package module where applicable

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-06-11 16:34:39 +02:00
parent 76e02b1f3d
commit 79571c074e

View file

@ -12,23 +12,18 @@
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%}
check_mode: no
- name: yum update fedimg packages from main repo
yum: name="{{ item }}" state=latest
with_items:
- python2-fedimg
- python2-libcloud
- python2-fedfind
- python2-toml
- python-vcrpy
- name: update fedimg packages from main repo
package:
name=["python2-fedimg", "python2-libcloud", "python2-fedfind", "python2-toml", "python-vcrpy"]
state=latest
when: not testing
- name: yum update fedimg packages from testing repo
yum: name="{{ item }}" state=latest enablerepo=infrastructure-tags-stg
with_items:
- python2-fedimg
- python2-libcloud
- python2-fedfind
- python2-toml
- python-vcrpy
- name: update fedimg packages from testing repo
yum:
name=["python2-fedimg", "python2-libcloud", "python2-fedfind", "python2-toml", "python-vcrpy"]
state=latest
enablerepo=infrastructure-tags-stg
when: testing
- name: verify the backend and restart it