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
|
||||
ini_file: dest={{ ckan_config_file }} section={{ item.section }} option={{ item.option }} value={{ item.value }} state={{ item.state }}
|
||||
with_items: '{{ ckan_memcache_ini_opts }}'
|
||||
notify:
|
||||
- Restart CKAN
|
||||
- Restart fetch and gather consumers
|
||||
notify: Restart fetch and gather consumers
|
||||
register: ckan_use_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
|
||||
file: dest=/tmp/{{ ckan_site_id }}/sessions state=absent
|
||||
ignore_errors: True
|
||||
|
||||
become: False
|
||||
when: ckan_memcache_sessions is defined and ckan_memcache_sessions
|
||||
|
|
Loading…
Reference in New Issue