switch this to use package

This commit is contained in:
Kevin Fenzi 2018-01-29 17:01:51 +00:00
parent b27f0508df
commit 750f0c7333

View file

@ -40,11 +40,11 @@
command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%}
check_mode: no
- name: yum update fedmsg packages from the main repo
yum: name={{item}} state=latest
package: name={{item}} state=latest
when: not testing
with_items: "{{packages}}"
- name: yum update fedmsg packages from testing repo
yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg
package: name={{item}} state=latest enablerepo=infrastructure-tags-stg
when: testing
with_items: "{{packages}}"