Skip to content

Commit

Permalink
Restart kubelet only after real kubelet package change
Browse files Browse the repository at this point in the history
  • Loading branch information
Zempashi committed Dec 7, 2023
1 parent d96eaa0 commit a4955ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/packages/tasks/pkg_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
service:
name: 'kubelet'
state: restarted
when: _kubelet_installed is changed and not ansible_check_mode
when:
- _kubelet_installed is changed
- "kubelet" in kube_package_dict
- not ansible_check_mode

0 comments on commit a4955ca

Please sign in to comment.