library/roles/ckan/ckan: Also restart the gather and fetcher processes when the configuration changes.

This commit is contained in:
Andrea Dell'Amico 2017-06-09 13:16:40 +02:00
parent bef922d176
commit 7c840aec0b
2 changed files with 7 additions and 1 deletions

View File

@ -4,3 +4,7 @@
- name: Reconfigure the supervisor daemon - name: Reconfigure the supervisor daemon
shell: supervisorctl reread ; supervisorctl add ckan_gather_consumer ; supervisorctl add ckan_fetch_consumer ; supervisorctl start ckan_gather_consumer ; supervisorctl start ckan_fetch_consumer shell: supervisorctl reread ; supervisorctl add ckan_gather_consumer ; supervisorctl add ckan_fetch_consumer ; supervisorctl start ckan_gather_consumer ; supervisorctl start ckan_fetch_consumer
- name: Restart fetch and gather consumers
supervisorctl: name={{ item }} state=restarted
with_items: '{{ ckan_gather_fetch_apps }}'

View File

@ -2,6 +2,8 @@
- name: Configure the CKAN plugins list into the configuration file - name: Configure the CKAN plugins list into the configuration file
ini_file: dest={{ ckan_config_file }} section={{ item.section }} option={{ item.option }} value={{ item.value }} state={{ item.state }} backup=yes ini_file: dest={{ ckan_config_file }} section={{ item.section }} option={{ item.option }} value={{ item.value }} state={{ item.state }} backup=yes
with_items: '{{ ckan_production_ini_plugins_opts }}' with_items: '{{ ckan_production_ini_plugins_opts }}'
notify: Restart CKAN notify:
- Restart CKAN
- Restart fetch and gather consumers
tags: [ 'ckan', 'ckan_ini', 'ckan_plugins' ] tags: [ 'ckan', 'ckan_ini', 'ckan_plugins' ]