From be5ff553deffa1168d687605a8f05019cac3a4c4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 5 Sep 2017 13:09:16 +0200 Subject: [PATCH] Restart the tomcat instance after a logback.xml update. --- smartgears/smartgears/defaults/main.yml | 4 ++-- smartgears/smartgears/tasks/smartgears-app.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml index 743c25a4..0eabc420 100644 --- a/smartgears/smartgears/defaults/main.yml +++ b/smartgears/smartgears/defaults/main.yml @@ -47,11 +47,11 @@ smartgears_publication_frequency: 300 smartgears_http_port: 9000 smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}' -smartgears_log_use_timesize_appender: False +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 diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml index 086b16e9..7f85d329 100644 --- a/smartgears/smartgears/tasks/smartgears-app.yml +++ b/smartgears/smartgears/tasks/smartgears-app.yml @@ -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' ]