forked from ISTI-ansible-roles/ansible-roles
library/roles/ckan/ckan: Also restart the gather and fetcher processes when the configuration changes.
This commit is contained in:
parent
bef922d176
commit
7c840aec0b
|
@ -4,3 +4,7 @@
|
|||
|
||||
- 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
|
||||
|
||||
- name: Restart fetch and gather consumers
|
||||
supervisorctl: name={{ item }} state=restarted
|
||||
with_items: '{{ ckan_gather_fetch_apps }}'
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
- 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
|
||||
with_items: '{{ ckan_production_ini_plugins_opts }}'
|
||||
notify: Restart CKAN
|
||||
notify:
|
||||
- Restart CKAN
|
||||
- Restart fetch and gather consumers
|
||||
tags: [ 'ckan', 'ckan_ini', 'ckan_plugins' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue