From 8efc0aca145f6c1e5165f58b29958624599ff62e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 15 Dec 2017 18:07:39 +0100 Subject: [PATCH] dataminer: install nscd when requested. --- smartgears/dataminer_app/tasks/dataminer-app.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index a04d3ae..9402749 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -123,6 +123,19 @@ shell: /usr/local/bin/wps-config-fixer # notify: Restart smartgears + - name: Install the nscd service to work around dns timeouts + become_user: root + apt: pkg=nscd state=present update_cache=yes cache_valid_time=1800 + when: dataminer_install_nscd is defined and dataminer_install_nscd + tags: [ 'tomcat', 'dataminer', 'wps', 'dm_nscd' ] + + - name: Ensure thad the nscd service is enabled and running + become_user: root + service: name=nscd state=restarted enabled=yes + when: dataminer_install_nscd is defined and dataminer_install_nscd + tags: [ 'tomcat', 'dataminer', 'wps', 'dm_nscd' ] + + become: True become_user: '{{ smartgears_user }}' when: dataminer_app_install