mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
use ansible_service_mgr to detect init system
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
when: init_system == "systemd" and restart_apimaster is defined and restart_apimaster == True
|
||||
when: ansible_service_mgr == "systemd" and restart_apimaster is defined and restart_apimaster == True
|
||||
|
||||
- name: reload kube-apiserver
|
||||
service:
|
||||
|
||||
Reference in New Issue
Block a user