From e0dc6144749be469b74db5b87f14bcf9f949cbd1 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 11 Oct 2017 21:28:12 +0200 Subject: [PATCH] Make the yumrepos task behave as expected on pagure-stg --- tasks/yumrepos.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 5ea45f386d..d8fcf775e3 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -73,7 +73,7 @@ - name: add infrastructure STAGING tags repo - RHEL copy: src="{{ files }}/common/rhel-infra-tags-stg.repo" dest="/etc/yum.repos.d/infra-tags-stg.repo" - when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and env == 'staging' + when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and env in ['staging', 'pagure-staging'] tags: - config - packages @@ -89,7 +89,7 @@ - name: add infrastructure STAGING tags repo - Fedora copy: src="{{ files }}/common/fedora-infra-tags-stg.repo" dest="/etc/yum.repos.d/infra-tags-stg.repo" - when: ansible_distribution == 'Fedora' and env == 'staging' + when: ansible_distribution == 'Fedora' and env in ['staging', 'pagure-staging'] tags: - config - packages