library/roles/tomcat-multiple-instances/tasks/main.yml: Restart all the instances when a default has been changed. The old trick did not work correctly.

This commit is contained in:
Andrea Dell'Amico 2017-05-11 17:04:36 +02:00
parent 938f661793
commit cc10698ecb
1 changed files with 1 additions and 3 deletions

View File

@ -105,9 +105,7 @@
- name: Install the tomcat instances default file
template: src=tomcat-default.j2 dest=/etc/default/tomcat-instance-{{ item.http_port }} mode=0640 owner=root group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
register: restart_needed
notify:
- tomcat restart instances with changed configs
notify: tomcat instances restart
tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_default', 'jdk' ]
- name: Install a custom context.xml file