library/roles/ckan/ckan: Task that optionally installs the CKAN profiler plugin

This commit is contained in:
Andrea Dell'Amico 2017-05-09 16:25:22 +02:00
parent 861672bab1
commit dbe15e6f04
2 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,8 @@ ckan_google_analytics_fixed_file: 'http://svn.research-infrastructures.eu/public
ckan_ga_reports: False
ckan_ga_reports_name: ga-report
ckan_ga_reports_url: 'git+https://github.com/datagovuk/ckanext-ga-report.git#egg=ckanext-ga-report'
ckan_profiler: False
ckan_profiler_url: 'git+https://github.com/seanh/ckanext-profile.git#egg=ckanext-profile'
# Needed to install some CKAN plugins

View File

@ -186,6 +186,12 @@
notify: Restart CKAN
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins' ]
- name: Install the CKAN profiler plugin
pip: name='{{ ckan_profiler_url }}' virtualenv={{ ckan_virtenv }} state={{ ckan_plugins_state }}
when: ckan_profiler
notify: Restart CKAN
tags: [ 'ckan', 'ckan_profiler', 'ckan_plugins' ]
become: True
become_user: '{{ ckan_shell_user }}'
tags: [ 'ckan', 'ckan_plugins' ]