From 2fb03f8078fc8810544b099f4794d147c6cbcde8 Mon Sep 17 00:00:00 2001 From: Chris Callegari Date: Wed, 13 Dec 2017 17:50:17 -0500 Subject: Commit to stabalize RHSM operations. This code is derived from contrib --- playbooks/init/repos.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'playbooks/init') 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 -- cgit v1.2.1