rename handler to fix ansible 2.8 issue (#5801)
parent
0aa22998e2
commit
b8d628c5f3
|
@ -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:
|
service:
|
||||||
name: kubelet
|
name: kubelet
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
- kubeadm_config_api_fqdn is not defined
|
- kubeadm_config_api_fqdn is not defined
|
||||||
- not is_kube_master
|
- not is_kube_master
|
||||||
- kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "")
|
- 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
|
# FIXME(mattymo): Need to point to localhost, otherwise masters will all point
|
||||||
# incorrectly to first master, creating SPoF.
|
# incorrectly to first master, creating SPoF.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: restart kubelet
|
- name: Node | restart kubelet
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify:
|
notify:
|
||||||
- Kubelet | reload systemd
|
- Kubelet | reload systemd
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
tags:
|
tags:
|
||||||
- kubelet
|
- kubelet
|
||||||
- upgrade
|
- upgrade
|
||||||
notify: restart kubelet
|
notify: Node | restart kubelet
|
||||||
|
|
||||||
- name: install | Set kubelet binary permissions
|
- name: install | Set kubelet binary permissions
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
src: "kubelet.env.{{ kubeadmConfig_api_version }}.j2"
|
src: "kubelet.env.{{ kubeadmConfig_api_version }}.j2"
|
||||||
dest: "{{ kube_config_dir }}/kubelet.env"
|
dest: "{{ kube_config_dir }}/kubelet.env"
|
||||||
backup: yes
|
backup: yes
|
||||||
notify: restart kubelet
|
notify: Node | restart kubelet
|
||||||
when: kubeadm_output.stdout is version('v1.13.0', '>=')
|
when: kubeadm_output.stdout is version('v1.13.0', '>=')
|
||||||
tags:
|
tags:
|
||||||
- kubelet
|
- kubelet
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
src: "kubelet.service.j2"
|
src: "kubelet.service.j2"
|
||||||
dest: "/etc/systemd/system/kubelet.service"
|
dest: "/etc/systemd/system/kubelet.service"
|
||||||
backup: "yes"
|
backup: "yes"
|
||||||
notify: restart kubelet
|
notify: Node | restart kubelet
|
||||||
tags:
|
tags:
|
||||||
- kubelet
|
- kubelet
|
||||||
- kubeadm
|
- kubeadm
|
||||||
|
|
|
@ -221,7 +221,7 @@
|
||||||
when:
|
when:
|
||||||
- cloud_provider is defined
|
- cloud_provider is defined
|
||||||
- cloud_provider in [ 'openstack', 'azure', 'vsphere', 'aws' ]
|
- cloud_provider in [ 'openstack', 'azure', 'vsphere', 'aws' ]
|
||||||
notify: restart kubelet
|
notify: Node | restart kubelet
|
||||||
tags:
|
tags:
|
||||||
- cloud-provider
|
- cloud-provider
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue