summaryrefslogtreecommitdiffstats
path: root/playbooks/init/repos.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/init/repos.yml')
-rw-r--r--playbooks/init/repos.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/playbooks/init/repos.yml b/playbooks/init/repos.yml
new file mode 100644
index 000000000..66786a41a
--- /dev/null
+++ b/playbooks/init/repos.yml
@@ -0,0 +1,16 @@
+---
+- name: Setup yum repositories for all hosts
+ hosts: oo_all_hosts
+ gather_facts: no
+ tasks:
+ - name: subscribe instances to Red Hat Subscription Manager
+ include_role:
+ name: rhel_subscribe
+ when:
+ - ansible_distribution == 'RedHat'
+ - deployment_type == 'openshift-enterprise'
+ - rhsub_user is defined
+ - rhsub_pass is defined
+ - name: initialize openshift repos
+ include_role:
+ name: openshift_repos