forked from ISTI-ansible-roles/ansible-roles
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:
parent
938f661793
commit
cc10698ecb
|
@ -105,9 +105,7 @@
|
||||||
- name: Install the tomcat instances default file
|
- 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 }}
|
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 }}'
|
with_items: '{{ tomcat_m_instances }}'
|
||||||
register: restart_needed
|
notify: tomcat instances restart
|
||||||
notify:
|
|
||||||
- tomcat restart instances with changed configs
|
|
||||||
tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_default', 'jdk' ]
|
tags: [ 'tomcat', 'tomcat_instances', 'tomcat_conf', 'tomcat_default', 'jdk' ]
|
||||||
|
|
||||||
- name: Install a custom context.xml file
|
- name: Install a custom context.xml file
|
||||||
|
|
Loading…
Reference in New Issue