Fix the handler that restarts tomcat.

This commit is contained in:
Andrea Dell'Amico 2022-09-05 16:24:23 +02:00
parent e4a0bc936d
commit d4b3d67d65
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
- name: Remove the Thredds webapp directory
file: path={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }} state=absent
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
when: not thredds_install or thredds_upgrade
tags: [ 'thredds', 'tomcat' ]
@ -43,7 +43,7 @@
with_nested:
- '{{ tomcat_m_instances }}'
- ['catalog.xml', 'wmsConfig.xml' ]
notify: tomcat instances restart
notify: tomcat multiple-instances restart
when: not thredds_skip_conf.stat.exists
tags: [ 'thredds', 'tomcat', 'thredds_conf' ]
@ -52,7 +52,7 @@
with_nested:
- '{{ tomcat_m_instances }}'
- [ 'threddsConfig.xml']
notify: tomcat instances restart
notify: tomcat multiple-instances restart
tags: [ 'thredds', 'tomcat', 'thredds_conf' ]
- name: Create the file that states that the thredds instance has been configured
@ -66,12 +66,12 @@
- name: Unarchive the thredds war
unarchive: copy=no src={{ thredds_download_directory }}/{{ thredds_file }} dest={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }} creates={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }}/WEB-INF/lib owner={{ item.user }} group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
- name: Install the Thredds webapp configuration files
template: src=web.xml.j2 dest={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }}/WEB-INF/web.xml owner={{ item.user }} group={{ item.user }} mode=644
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
tags: [ 'thredds', 'tomcat', 'thredds_conf', 'thredds_webxml' ]
- name: Install the Thredds log4j configuration file