Commit 9379018d authored by Jeff Geerling's avatar Jeff Geerling

Reload kubelet unit file if config is changed.

parent c287258b
...@@ -22,7 +22,14 @@ ...@@ -22,7 +22,14 @@
regexp: 'Environment="KUBELET_EXTRA_ARGS=' regexp: 'Environment="KUBELET_EXTRA_ARGS='
insertafter: '^Environment=' insertafter: '^Environment='
state: present state: present
notify: restart kubelet register: kubelet_unit_file
- name: Reload systemd unit if args were changed.
systemd:
state: restarted
daemon_reload: yes
name: kubelet
when: kubelet_unit_file is changed
- name: Ensure kubelet is started and enabled at boot. - name: Ensure kubelet is started and enabled at boot.
service: service:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment