use command instead of synchronize

This commit is contained in:
Smaine Kahlouch
2016-01-22 16:37:07 +01:00
parent 078b67c50f
commit cb59559835
8 changed files with 41 additions and 63 deletions

View File

@@ -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