From a829e0bf679c5429c153ad1b1b95e99a1484bd62 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Thu, 18 Aug 2016 19:00:05 +0300 Subject: [PATCH] Restart kubelet if launcher changed Fixes #409 --- roles/kubernetes/node/tasks/install.yml | 3 +-- roles/kubernetes/node/tasks/main.yml | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/roles/kubernetes/node/tasks/install.yml b/roles/kubernetes/node/tasks/install.yml index 23e482bc7..6b5fe5bb4 100644 --- a/roles/kubernetes/node/tasks/install.yml +++ b/roles/kubernetes/node/tasks/install.yml @@ -16,5 +16,4 @@ - name: install | Install kubelet launch script template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner=kube mode=0755 backup=yes - register: kubelet_launcher - changed_when: false + notify: restart kubelet diff --git a/roles/kubernetes/node/tasks/main.yml b/roles/kubernetes/node/tasks/main.yml index 0aa1957ea..9c14e7a4c 100644 --- a/roles/kubernetes/node/tasks/main.yml +++ b/roles/kubernetes/node/tasks/main.yml @@ -23,11 +23,6 @@ src: manifests/kube-proxy.manifest.j2 dest: "{{ kube_manifest_dir }}/kube-proxy.manifest" -- name: Restart kubelet if binary changed - command: /bin/true - notify: restart kubelet - when: kubelet_launcher.changed - # reload-systemd - meta: flush_handlers