ensure service is running

I have tried few Ansible playbooks and it looks nice. I am confused about task and handler association. Most example show tasks notifying handlers about service state/restart. I was wondering if service state can be controlled without task as well. For example, how can I ensure default ntpd service is running all the time. Do I simply add ntpd handler without any tasks or vars? Any help?

thanks,
N

Of course. Handlers are just special types of tasks.

tasks:

  • service: name=foo state=running enabled=yes

etc