Explicitly only use the main repo when not testing

When the Anitya package gets updated, only use the main repo when
testing is not on.

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
Jeremy Cline 2017-02-09 19:55:03 +00:00
parent 8d67a6f690
commit ae6fe5e560

View file

@ -13,6 +13,7 @@
check_mode: no
- name: yum update anitya packages from main repo
yum: name="anitya" state=latest
when: not testing
- name: yum update anitya packages from testing repo
yum: name="anitya" state=latest enablerepo=infrastructure-testing
when: testing