Brian, I am very new to anisble but in the link you provided i can see some
examples with systemd, it has state mentioned, but how can i use command to
restart the service

- name: restart service cron on centos, in all cases, also issue
daemon-reload to pick up config changes
  systemd:
    state: restarted
    daemon_reload: yes
    name: crond


On Fri, Nov 2, 2018 at 11:34 AM Brian Coca <bc...@redhat.com> wrote:

> See docs for correct syntax
> https://docs.ansible.com/ansible/latest/modules/systemd_module.html
>
> --
> ----------
> 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/CACVha7fSY2NAmSoNTJg9ohOL8RGvLJjhdr2z83Ae6hxCExd1Kw%40mail.gmail.com
> .
> 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/CABdF8S0uppa%2Bti%2B44jHtMVO5GUJsJ8yjtqn-%3DTz8r1f0LUPmJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to