Is it possible to define one block notifyfor several tasks?
The following code snippet notify: restart tomcatis set 3 times, but I want to define it only once and "apply" to the task list
- name : template context.xml
template:
src: context.xml.j2
dest: /usr/share/tomcat/conf/context.xml
group: tomcat
mode: 0664
notify: restart tomcat
- name : copy server.xml
copy:
src: server.xml
dest: /etc/tomcat/server.xml
group: tomcat
mode: 0664
notify: restart tomcat
- name : copy atomikos-integration-extension
copy:
src: atomikos-integration-extension-3.7.1-20120529.jar
dest: /usr/share/tomcat/ext-libs/
group: tomcat
mode: 0664
notify: restart tomcat
source
share