Restart the tomcat instance after a logback.xml update.

This commit is contained in:
Andrea Dell'Amico 2017-09-05 13:09:16 +02:00
parent 04c74c3e67
commit be5ff553de
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,7 @@ smartgears_log_use_timesize_appender: False
smartgears_loglevel: WARN
smartgears_dataanalysis_loglevel: DEBUG
smartgears_log_max_history: 30
smartgears_log_max_file_size: 10M
smartgears_log_max_file_size: 10MB
smartgears_log_total_file_cap: 2GB
smartgears_log_dir: '{{ smartgears_user_home }}/tomcat/logs'
smartgears_logback_template: True

View File

@ -76,6 +76,7 @@
become_user: '{{ smartgears_user }}'
template: src=logback.xml.j2 dest={{ smartgears_instance_path }}/lib/logback.xml
when: smartgears_logback_template
notify: Restart smartgears
tags: [ 'smartgears', 'smartgears_conf', 'tomcat', 'logback_conf' ]