mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
use command instead of synchronize
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
- name: "Identify init system"
|
||||
shell: >
|
||||
$(pgrep systemd > /dev/null && systemctl status network > /dev/null);
|
||||
$(pgrep systemd > /dev/null && systemctl status network.target > /dev/null);
|
||||
if [ $? -eq 0 ] ; then
|
||||
echo systemd;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user