Explorar o código

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

Ensure dnsmasq is restarted during upgrades
Scott Dodson %!s(int64=6) %!d(string=hai) anos
pai
achega
0d33b82869
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  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