diff --git a/ckan/ckan/handlers/main.yml b/ckan/ckan/handlers/main.yml index d3d94cb..1c03360 100644 --- a/ckan/ckan/handlers/main.yml +++ b/ckan/ckan/handlers/main.yml @@ -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 }}' diff --git a/ckan/ckan/tasks/ckan-config.yml b/ckan/ckan/tasks/ckan-config.yml index b44d21d..8ef3d7a 100644 --- a/ckan/ckan/tasks/ckan-config.yml +++ b/ckan/ckan/tasks/ckan-config.yml @@ -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' ]