Browse Source

Merge pull request #9891 from e-minguez/openstack_update_image

Updated packages in gold image and unsubscribe image
OpenShift Merge Robot 6 years ago
parent
commit
097402f27a
1 changed files with 16 additions and 0 deletions
  1. 16 0
      playbooks/openstack/openshift-cluster/build_image.yml

+ 16 - 0
playbooks/openstack/openshift-cluster/build_image.yml

@@ -141,6 +141,22 @@
 # to become a node.
 - import_playbook: ../../openshift-node/private/image_prep.yml
 
+- name: Finish image preparation
+  hosts: nodes
+  become: yes
+  tasks:
+  - name: Update to latest package versions
+    import_role:
+      name: os_update_latest
+    when:
+    - ansible_distribution == "RedHat"
+
+  - name: Unsubscribe image
+    import_role:
+      name: rhel_unsubscribe
+    when:
+    - ansible_distribution == "RedHat"
+    - (rhsub_user is defined and rhsub_pass is defined) or (rhsub_ak is defined and rhsub_orgid is defined)
 
 - name: Commit image
   hosts: localhost