- name: be sure check-http.rb is copied
copy:
src: /tmp/sensu-plugins-http/bin/check-http.rb
dest: /etc/sensu/plugins/check-http.rb
remote_src: true
owner: sensu
group: sensu
mode: 0500
notify:
- restart sensu-api
- restart sensu-client
- restart sensu-server
- name: be sure check_websites.json is copied
template:
src: check_websites.j2
dest: "{{ sensu_conf_d }}/check_websites.json"
register: check_websites_config
notify:
- restart sensu-api
- restart sensu-client
- restart sensu-server
Instead of repeating:
notify:
- restart sensu-api
- restart sensu-client
- restart sensu-server
is it possible to make it concise, e.g.:
notify:
- restart sensu-services
Expected answer
@knowhy suggested this solution, but I am looking for a solution that is able to combine multiple restarts in a handler and not in the tasks directory