datagrepper: replace the yum module by the package module

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-06-11 16:17:44 +02:00
parent 0d24af954e
commit f2d38f43d8

View file

@ -15,10 +15,10 @@
command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%}
check_mode: no
- name: yum update datagrepper packages from main repo
yum: name="datagrepper" state=latest
package: name="datagrepper" state=latest
when: not testing
- name: yum update datagrepper packages from testing repo
yum: name="datagrepper" state=latest enablerepo=infrastructure-tags-stg
package: name="datagrepper" state=latest enablerepo=infrastructure-tags-stg
when: testing
- name: verify the config and restart it