Browse Source

Configure repositories if RHEL

It looks like the rhel_subscribe playbook cannot be imported as is, so 
instead, import the repositories config task 
https://github.com/openshift/openshift-ansible/pull/9834
Eduardo Minguez Perez 6 years ago
parent
commit
9ca45b5ec6
1 changed files with 7 additions and 0 deletions
  1. 7 0
      playbooks/openstack/openshift-cluster/provision.yml

+ 7 - 0
playbooks/openstack/openshift-cluster/provision.yml

@@ -56,5 +56,12 @@
     - ansible_distribution == "RedHat"
     - (rhsub_user is defined and rhsub_pass is defined) or (rhsub_ak is defined and rhsub_orgid is defined)
 
+  - name: Configuring proper repositories
+    import_role:
+      name: openshift_repos
+    when:
+    - ansible_distribution == "RedHat"
+    - (rhsub_user is defined and rhsub_pass is defined) or (rhsub_ak is defined and rhsub_orgid is defined)
+
 - name: Show information about the deployed cluster
   import_playbook: cluster-info.yml