Explorar o código

Revert "Skip base package check for openshift_ca role"

Vadim Rutkovsky %!s(int64=6) %!d(string=hai) anos
pai
achega
ea5c27fff7
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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: