diff --git a/roles/packages/tasks/pkg_Debian.yml b/roles/packages/tasks/pkg_Debian.yml index 5ccfd15..f9313a4 100644 --- a/roles/packages/tasks/pkg_Debian.yml +++ b/roles/packages/tasks/pkg_Debian.yml @@ -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