From 5048776016b8185accca7721c667c9439a385d68 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 17 Dec 2018 13:21:01 +0100 Subject: [PATCH] Add a task to force a dataminer reconfiguration. --- smartgears/dataminer_app/tasks/dataminer-app.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index 91918f7e..adc0e38a 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -35,7 +35,13 @@ - name: Fix the WPS config file shell: /usr/local/bin/wps-config-fixer notify: Restart smartgears - when: dataminer_force_restart is defined and dataminer_force_restart + when: dataminer_updated is changed + tags: [ 'tomcat', 'dataminer', 'wps', 'wps_config' ] + + - name: Force the fix of the WPS config file + shell: /usr/local/bin/wps-config-fixer + notify: Restart smartgears + when: dataminer_force_reconfiguration is defined and dataminer_force_reconfiguration tags: [ 'tomcat', 'dataminer', 'wps', 'wps_config' ] - name: Remove the file that lists the installed algorithms, after an upgrade