Prechádzať zdrojové kódy

Install openshift_node packages using async to avoid issues with bastion

Jeremiah Stuever 6 rokov pred
rodič
commit
aa458daa88
1 zmenil súbory, kde vykonal 4 pridanie a 8 odobranie
  1. 4 8
      roles/openshift_node40/tasks/install.yml

+ 4 - 8
roles/openshift_node40/tasks/install.yml

@@ -3,10 +3,8 @@
   package:
     name: "{{ openshift_node_install_packages | join(',') }}"
     update_cache: true
-  register: install_openshift
-  until: install_openshift.rc == 0
-  retries: 3
-  delay: 1
+  async: 3600
+  poll: 30
 
 - name: Enable the CRI-O service
   systemd:
@@ -16,10 +14,8 @@
 - name: Install openshift packages
   package:
     name: "{{ l_node_packages | join(',') }}"
-  register: install_openshift
-  until: install_openshift.rc == 0
-  retries: 3
-  delay: 1
+  async: 3600
+  poll: 30
   vars:
     l_node_packages:
     - "{{ openshift_service_type }}-node{{ (openshift_pkg_version | default('')) | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"