Hi,
In my cookbook, I have a lot of notify statements, e.g.
notify:
- restart apache
notify:
- restart mysql
handlers:
- name: restart apache
service: name=httpd state=restarted
…many handlers…
And all these need to be specified in handlers, sound not elegant, right?
are there any better way to do it? e.g. notify to restart directly?