ansible-role-ckan/handlers/main.yml

11 lines
451 B
YAML

---
- name: Restart CKAN
service: name=apache2 state=restarted sleep=10
- 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 }}'