瀏覽代碼

Merge pull request #10112 from mgugino-upstream-stage/restart-dnsmasq-upgrade

Ensure dnsmasq is restarted during upgrades
Scott Dodson 6 年之前
父節點
當前提交
0d33b82869
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      roles/openshift_node/tasks/upgrade.yml

+ 10 - 2
roles/openshift_node/tasks/upgrade.yml

@@ -65,6 +65,16 @@
 - import_tasks: dnsmasq_install.yml
 - import_tasks: dnsmasq.yml
 
+- name: ensure dnsmasq is always restarted
+  debug:
+    msg: "Restarting dnsmasq"
+  # changed_when: True required for debug tasks to trigger handlers.
+  changed_when: True
+  notify: restart dnsmasq
+
+# Need to flush handlers here so dnsmasq is restarted.
+- meta: flush_handlers
+
 # Restart all services
 - import_tasks: upgrade/restart.yml
 
@@ -80,5 +90,3 @@
   until: node_upgrade_oc_csr_approve is succeeded
 
 - import_tasks: journald.yml
-
-- meta: flush_handlers