forked from ISTI-ansible-roles/ansible-roles
CKAN: reload the service immediately after the switch to memcache backed sessions.
This commit is contained in:
parent
ff39429d9b
commit
4a4af42f19
|
@ -15,13 +15,17 @@
|
||||||
- name: Configure CKAN so that it uses memcache for its sessions
|
- name: Configure CKAN so that it uses memcache for its sessions
|
||||||
ini_file: dest={{ ckan_config_file }} section={{ item.section }} option={{ item.option }} value={{ item.value }} state={{ item.state }}
|
ini_file: dest={{ ckan_config_file }} section={{ item.section }} option={{ item.option }} value={{ item.value }} state={{ item.state }}
|
||||||
with_items: '{{ ckan_memcache_ini_opts }}'
|
with_items: '{{ ckan_memcache_ini_opts }}'
|
||||||
notify:
|
notify: Restart fetch and gather consumers
|
||||||
- Restart CKAN
|
register: ckan_use_memcache
|
||||||
- Restart fetch and gather consumers
|
|
||||||
tags: [ 'ckan', 'ckan_ini', 'ckan_plugins', 'ckan_sessions', 'ckan_memcache' ]
|
tags: [ 'ckan', 'ckan_ini', 'ckan_plugins', 'ckan_sessions', 'ckan_memcache' ]
|
||||||
|
|
||||||
|
- name: Restart CKAN after enabling the memcache sessions configuration
|
||||||
|
service: name=apache2 state=reloaded
|
||||||
|
when: ckan_use_memcache is changed
|
||||||
|
|
||||||
- name: Remove the CKAN session files
|
- name: Remove the CKAN session files
|
||||||
file: dest=/tmp/{{ ckan_site_id }}/sessions state=absent
|
file: dest=/tmp/{{ ckan_site_id }}/sessions state=absent
|
||||||
|
ignore_errors: True
|
||||||
|
|
||||||
become: False
|
become: False
|
||||||
when: ckan_memcache_sessions is defined and ckan_memcache_sessions
|
when: ckan_memcache_sessions is defined and ckan_memcache_sessions
|
||||||
|
|
Loading…
Reference in New Issue