Test for a systemd service that should be up.
This commit is contained in:
parent
9e9aba4e3a
commit
ec1073def8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue