From ad0d5d676b419d745fcc2008ba8bec0431289966 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 10 May 2017 14:00:45 +0200 Subject: [PATCH] library/roles/tomcat-multiple-instances/tasks/main.yml: Add the tag 'jdk' to the task that install the tomcat defaults. This way a JDK change will be reflected to the tomcat configuration. --- tomcat-multiple-instances/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tomcat-multiple-instances/tasks/main.yml b/tomcat-multiple-instances/tasks/main.yml index c5f799c..fd3437f 100644 --- a/tomcat-multiple-instances/tasks/main.yml +++ b/tomcat-multiple-instances/tasks/main.yml @@ -108,7 +108,7 @@ register: restart_needed notify: - tomcat restart instances with changed configs - tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_default' ] + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_default', 'jdk' ] - name: Install a custom context.xml file template: src=tomcat-context.xml.j2 dest={{ item.instance_path }}/conf/context.xml owner={{ item.user }} group={{ item.user }} mode=0640 @@ -117,7 +117,7 @@ notify: - tomcat restart instances with changed configs when: tomcat_m_jndi_pool - tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_contextxml' ] + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_contextxml', 'jdk' ] - 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