Browse Source

Merge pull request #9670 from openshift/revert-9622-skip-extra-pkg-check

Revert "Skip base package check for openshift_ca role"
Scott Dodson 6 years ago
parent
commit
0e600533e0
1 changed files with 10 additions and 0 deletions
  1. 10 0
      roles/openshift_ca/tasks/main.yml

+ 10 - 0
roles/openshift_ca/tasks/main.yml

@@ -3,6 +3,16 @@
     msg: "Both 'certfile' and 'keyfile' keys must be supplied when configuring openshift_master_ca_certificate"
   when: openshift_master_ca_certificate is defined and ('certfile' not in openshift_master_ca_certificate or 'keyfile' not in openshift_master_ca_certificate)
 
+- name: Install the base package for admin tooling
+  package:
+    name: "{{ openshift_service_type }}{{ openshift_pkg_version | default('') | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"
+    state: present
+  when: not hostvars[openshift_ca_host].openshift_is_atomic | bool
+  register: install_result
+  until: install_result is succeeded
+  delegate_to: "{{ openshift_ca_host }}"
+  run_once: true
+
 - name: Reload generated facts
   openshift_facts:
   when: