summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack/openshift-cluster
diff options
context:
space:
mode:
authorTomas Sedovic <tomas@sedovic.cz>2017-11-29 11:38:04 +0100
committerTomas Sedovic <tomas@sedovic.cz>2017-11-29 12:50:35 +0100
commit1c0c502988b0f1d014e5cba7f789d344c56f2d1b (patch)
treed19830c4ef81e72ea9a3416d7e29cd9962a10b10 /playbooks/openstack/openshift-cluster
parent691179281336dcd56d17b70cdf4067a142238b83 (diff)
downloadopenshift-1c0c502988b0f1d014e5cba7f789d344c56f2d1b.tar.gz
openshift-1c0c502988b0f1d014e5cba7f789d344c56f2d1b.tar.bz2
openshift-1c0c502988b0f1d014e5cba7f789d344c56f2d1b.tar.xz
openshift-1c0c502988b0f1d014e5cba7f789d344c56f2d1b.zip
Optionally subscribe OpenStack RHEL nodes
Diffstat (limited to 'playbooks/openstack/openshift-cluster')
-rw-r--r--playbooks/openstack/openshift-cluster/provision.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/playbooks/openstack/openshift-cluster/provision.yml b/playbooks/openstack/openshift-cluster/provision.yml
index 36d8c8215..1d2680252 100644
--- a/playbooks/openstack/openshift-cluster/provision.yml
+++ b/playbooks/openstack/openshift-cluster/provision.yml
@@ -26,6 +26,9 @@
- name: Gather facts for the new nodes
setup:
+- name: set common facts
+ include: ../../init/facts.yml
+
# NOTE(shadower): the (internal) DNS must be functional at this point!!
# That will have happened in provision.yml if nsupdate was configured.
@@ -47,6 +50,13 @@
hosts: oo_all_hosts
become: yes
gather_facts: yes
+ roles:
+ - role: rhel_subscribe
+ when:
+ - ansible_distribution == "RedHat"
+ - lookup('env', 'rhel_subscription_user') | default(rhsub_user | default(False, True), True)
+ - lookup('env', 'rhel_subscription_pass') | default(rhsub_pass | default(False, True), True)
+
tasks:
- name: Install dependencies
include_role: