diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 3836f3cad0..7d8d0702dd 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -59,7 +59,7 @@ - name: add infrastructure tags repo - RHEL copy: src="{{ files }}/common/rhel-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo" - when: ansible_distribution == 'RedHat' + when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel) tags: - config - packages