Normally you don't want to use command/shell to start services, as they will probably kill the service when the task ends.
Using an init system (sysv init scripts, systemd) is normally much better and more reliable. IF you still want to use the command/shell way, you should use nohup and background the service to avoid killing it on task end. -- ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7eDd6jpOdWp5se-ZQf%3DyLKT_8tC5_sEUwTV7LhY6h7hyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.