Forráskód Böngészése

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 éve
szülő
commit
9ca45b5ec6

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

@@ -56,5 +56,12 @@
     - ansible_distribution == "RedHat"
     - ansible_distribution == "RedHat"
     - (rhsub_user is defined and rhsub_pass is defined) or (rhsub_ak is defined and rhsub_orgid is defined)
     - (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
 - name: Show information about the deployed cluster
   import_playbook: cluster-info.yml
   import_playbook: cluster-info.yml