Of course. Handlers are just special types of tasks. tasks: - service: name=foo state=running enabled=yes
etc On Sun, Jan 5, 2014 at 4:21 AM, <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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 [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
