From c95e71cc2b27fb35cbeac914c8e1501478ad5e75 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 9 May 2017 19:11:08 +0200 Subject: [PATCH] library/roles/ckan/ckan/tasks/ckan-plugins.yml: Create a directory with the proper permissions to store the profile logs. d4science-ghn-cluster/group_vars/ckan_web/ckan_web.yml: Install, but not enable, the profiling plugin on all the CKAN instances. --- ckan/ckan/tasks/ckan-plugins.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ckan/ckan/tasks/ckan-plugins.yml b/ckan/ckan/tasks/ckan-plugins.yml index 27b4600..b73e656 100644 --- a/ckan/ckan/tasks/ckan-plugins.yml +++ b/ckan/ckan/tasks/ckan-plugins.yml @@ -192,6 +192,12 @@ notify: Restart CKAN tags: [ 'ckan', 'ckan_profiler', 'ckan_plugins' ] + - name: Create the profiler plugin log directory + become: False + file: dest=/var/log/ckan-profiler owner=www-data group=www-data state=directory + when: ckan_profiler + tags: [ 'ckan', 'ckan_profiler', 'ckan_plugins' ] + become: True become_user: '{{ ckan_shell_user }}' tags: [ 'ckan', 'ckan_plugins' ]