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