summaryrefslogtreecommitdiffstats
path: root/playbooks/init/repos.yml
diff options
context:
space:
mode:
authorChris Callegari <mazzystr@gmail.com>2017-12-13 17:50:17 -0500
committerChris Callegari <mazzystr@gmail.com>2017-12-14 08:44:06 -0500
commit2fb03f8078fc8810544b099f4794d147c6cbcde8 (patch)
treee6609b6ced8f268d54dd1ec5a6630cdbb2b9661f /playbooks/init/repos.yml
parent01ae634a0bf89fe840006f9139f8ffd20e09afc8 (diff)
downloadopenshift-2fb03f8078fc8810544b099f4794d147c6cbcde8.tar.gz
openshift-2fb03f8078fc8810544b099f4794d147c6cbcde8.tar.bz2
openshift-2fb03f8078fc8810544b099f4794d147c6cbcde8.tar.xz
openshift-2fb03f8078fc8810544b099f4794d147c6cbcde8.zip
Commit to stabalize RHSM operations. This code is derived from contrib
Diffstat (limited to 'playbooks/init/repos.yml')
-rw-r--r--playbooks/init/repos.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/init/repos.yml b/playbooks/init/repos.yml
index a7114fc80..4967b8f13 100644
--- a/playbooks/init/repos.yml
+++ b/playbooks/init/repos.yml
@@ -3,6 +3,14 @@
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'
+ - (rhel_subscription_user or rhsub_user) is defined
+ - (rhel_subscription_password or rhsub_pass) is defined
- name: initialize openshift repos
include_role:
name: openshift_repos