瀏覽代碼

upgrade: skip restart during double upgrade

Vadim Rutkovsky 7 年之前
父節點
當前提交
9c7cc39e6a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      playbooks/openshift-master/private/validate_restart.yml

+ 3 - 1
playbooks/openshift-master/private/validate_restart.yml

@@ -61,4 +61,6 @@
     - exists.stat.exists and openshift.common.rolling_restart_mode == 'system'
   - set_fact:
       current_host: "{{ exists.stat.exists }}"
-    when: openshift.common.rolling_restart_mode == 'system'
+    when:
+    - "'stat' in exists"
+    - openshift.common.rolling_restart_mode == 'system'