rename handler to fix ansible 2.8 issue (#5801)

pull/5813/head
Sergey 2020-03-20 23:54:08 +03:00 committed by GitHub
parent 0aa22998e2
commit b8d628c5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,15 @@
---
- name: restart kubelet
- name: Kubeadm | restart kubelet
command: /bin/true
notify:
- Kubeadm | reload systemd
- Kubeadm | reload kubelet
- name: Kubeadm | reload systemd
systemd:
daemon_reload: true
- name: Kubeadm | reload kubelet
service:
name: kubelet
state: restarted

View File

@ -101,7 +101,7 @@
- kubeadm_config_api_fqdn is not defined
- not is_kube_master
- kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "")
notify: restart kubelet
notify: Kubeadm | restart kubelet
# FIXME(mattymo): Need to point to localhost, otherwise masters will all point
# incorrectly to first master, creating SPoF.

View File

@ -1,5 +1,5 @@
---
- name: restart kubelet
- name: Node | restart kubelet
command: /bin/true
notify:
- Kubelet | reload systemd

View File

@ -35,7 +35,7 @@
tags:
- kubelet
- upgrade
notify: restart kubelet
notify: Node | restart kubelet
- name: install | Set kubelet binary permissions
file:

View File

@ -23,7 +23,7 @@
src: "kubelet.env.{{ kubeadmConfig_api_version }}.j2"
dest: "{{ kube_config_dir }}/kubelet.env"
backup: yes
notify: restart kubelet
notify: Node | restart kubelet
when: kubeadm_output.stdout is version('v1.13.0', '>=')
tags:
- kubelet
@ -43,7 +43,7 @@
src: "kubelet.service.j2"
dest: "/etc/systemd/system/kubelet.service"
backup: "yes"
notify: restart kubelet
notify: Node | restart kubelet
tags:
- kubelet
- kubeadm

View File

@ -221,7 +221,7 @@
when:
- cloud_provider is defined
- cloud_provider in [ 'openstack', 'azure', 'vsphere', 'aws' ]
notify: restart kubelet
notify: Node | restart kubelet
tags:
- cloud-provider