mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 10:08:37 +03:00
use ansible_service_mgr to detect init system
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
- name : reload systemd
|
||||
shell: systemctl daemon-reload
|
||||
when: init_system == "systemd"
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
- name: restart weave
|
||||
command: /bin/true
|
||||
|
||||
Reference in New Issue
Block a user