refactor how osbs copr repos are handled for stage

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2016-04-14 16:03:02 +00:00
parent 1475f3b8f6
commit 8a5411535f
7 changed files with 33 additions and 12 deletions

13
tasks/osbs_repos.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: install the atomic-reactor copr repo (fedora)
copy:
src: "{{files}}/osbs/maxamillion-atomic-reactor-fedora.repo"
dest: "/etc/yum.repos.d/maxamillion-atomic-reactor-fedora.repo"
when: env == "staging" and is_fedora is defined
- name: install the atomic-reactor copr repo (epel)
copy:
src: "{{files}}/osbs/maxamillion-atomic-reactor-epel.repo"
dest: "/etc/yum.repos.d/maxamillion-atomic-reactor-epel.repo"
when: env == "staging" and is_rhel is defined