소스 검색

Run MCD task asynchronously

Russell Teague 6 년 전
부모
커밋
38a87e0d13
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      roles/openshift_node40/tasks/config.yml

+ 7 - 7
roles/openshift_node40/tasks/config.yml

@@ -62,13 +62,13 @@
       podman_flags: "--privileged --rm -ti {{ release_image_mcd.stdout }}"
       podman_mounts: "-v /:/rootfs -v /var/run/dbus:/var/run/dbus -v /run/systemd:/run/systemd"
       mcd_command: "start --node-name {{ ansible_hostname }} --once-from {{ ign_file }}"
-    # MCD reboots the machine
-    ignore_unreachable: true
-  # Wait for the host to come back and reset 'unreachable' status
+    # MCD reboots the machine, run the task but do not wait for completion
+    async: 60
+    poll: 0
+
+  # Wait for the host to come back
   - wait_for_connection: {}
-  # Clear unreachable status
-  - name: clear any host unreachable error messages.
-    meta: clear_host_errors
+
   rescue:
   - fail:
-      msg: "Ignition apply failed, {{ mcd_apply.stdout }}"
+      msg: "Ignition apply failed"