mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Test for a systemd service that should be up.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
- name: "Identify init system"
|
- name: "Identify init system"
|
||||||
shell: >
|
shell: >
|
||||||
$(pgrep systemd > /dev/null && systemctl status > /dev/null);
|
$(pgrep systemd > /dev/null && systemctl status network > /dev/null);
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo systemd;
|
echo systemd;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user