summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-02-01 13:57:56 +0100
committerJan Chaloupka <jchaloup@redhat.com>2017-02-01 16:45:14 +0100
commit9221ef2b06df897b1ae7150431cd2c8dda473624 (patch)
tree2813d11a50affea7c25a6f9b7397d567cadc915f /roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml
parent80c24368564e2b8328c63d21902f54cb3ea12c4d (diff)
downloadopenshift-9221ef2b06df897b1ae7150431cd2c8dda473624.tar.gz
openshift-9221ef2b06df897b1ae7150431cd2c8dda473624.tar.bz2
openshift-9221ef2b06df897b1ae7150431cd2c8dda473624.tar.xz
openshift-9221ef2b06df897b1ae7150431cd2c8dda473624.zip
Move current node upgrade tasks under openshift_node_upgrade role
Diffstat (limited to 'roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml')
-rw-r--r--roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml b/roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml
new file mode 100644
index 000000000..07b0ac715
--- /dev/null
+++ b/roles/openshift_node_upgrade/tasks/containerized_node_upgrade.yml
@@ -0,0 +1,14 @@
+---
+# This is a hack to allow us to use systemd_units.yml, but skip the handlers which
+# restart services. We will unconditionally restart all containerized services
+# because we have to unconditionally restart Docker:
+- set_fact:
+ skip_node_svc_handlers: True
+
+- name: Update systemd units
+ include: systemd_units.yml
+
+# This is a no-op because of skip_node_svc_handlers, but lets us trigger it before end of
+# play when the node has already been marked schedulable again. (this would look strange
+# in logs otherwise)
+- meta: flush_handlers