can i change it to service - name: Restart kestrelservice hosts: all tasks: - name: start Kestrel service service: command: sudo systemctl restart kestrel-axprocessapi.service start: restarted name: kestrel-axprocessapi.service
On Fri, Nov 2, 2018 at 9:21 AM Brian Coca <bc...@redhat.com> wrote: > You are mixing things in there, systemd module does NOT have 'command' > or 'start' options > > -- > ---------- > 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/CACVha7cXEdcORV8PVKMxaYcLcbrrdeXX6VR-tcatROBA-uZ9%3DQ%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CACVha7cXEdcORV8PVKMxaYcLcbrrdeXX6VR-tcatROBA-uZ9%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- 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/CABdF8S17PDdO-L45i5FSwv%2B9%3DijnSgKYe6zX96hOza7pADbPFQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.