diff --git a/tomcat-multiple-instances/tasks/main.yml b/tomcat-multiple-instances/tasks/main.yml index 6de1ccb..bc127f6 100644 --- a/tomcat-multiple-instances/tasks/main.yml +++ b/tomcat-multiple-instances/tasks/main.yml @@ -118,9 +118,7 @@ register: restart_needed notify: - tomcat restart instances with changed configs - tags: - - tomcat - - tomcat_instances + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf' ] - name: Install the instances startup scripts template: src=tomcat-instance.init.j2 dest=/etc/init.d/tomcat-instance-{{ item.http_port }} mode=0755 owner=root group=root @@ -135,16 +133,12 @@ register: restart_needed notify: - tomcat restart instances with changed configs - tags: - - tomcat - - tomcat_instances + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf' ] - name: Install a logrotate entry for the access log file template: src=tomcat.logrotate.j2 dest=/etc/logrotate.d/tomcat_instance-{{ item.http_port }} owner=root group=root mode=0644 with_items: tomcat_m_instances - tags: - - tomcat - - tomcat_instances + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf' ] - name: Install the jmx authorization file template: src=jmxremote.passwd.j2 dest={{ item.instance_path }}/conf/jmxremote.passwd owner={{ item.user }} group={{ item.user }} mode=0600 @@ -157,9 +151,7 @@ register: jmx_restart_needed notify: - tomcat restart instances with changed jmx config - tags: - - tomcat - - tomcat_instances + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_jmx' ] - name: Install the jmx role file copy: src=jmxremote.access dest={{ item.instance_path }}/conf/jmxremote.access owner={{ item.user }} group={{ item.user }} mode=0644 @@ -172,9 +164,7 @@ register: jmx restart_needed notify: - tomcat restart instances with changed jmx config - tags: - - tomcat - - tomcat_instances + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_jmx' ] - name: Start and enable all the tomcat instances service: name=tomcat-instance-'{{ item.http_port }}' state=started sleep=20 enabled=yes