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:
parent
8d67a6f690
commit
ae6fe5e560
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
check_mode: no
|
check_mode: no
|
||||||
- name: yum update anitya packages from main repo
|
- name: yum update anitya packages from main repo
|
||||||
yum: name="anitya" state=latest
|
yum: name="anitya" state=latest
|
||||||
|
when: not testing
|
||||||
- name: yum update anitya packages from testing repo
|
- name: yum update anitya packages from testing repo
|
||||||
yum: name="anitya" state=latest enablerepo=infrastructure-testing
|
yum: name="anitya" state=latest enablerepo=infrastructure-testing
|
||||||
when: testing
|
when: testing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue