forked from ISTI-ansible-roles/ansible-roles
library/roles/ckan/ckan: Task that optionally installs the CKAN profiler plugin
This commit is contained in:
parent
861672bab1
commit
dbe15e6f04
|
@ -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
|
||||
|
|
|
@ -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' ]
|
||||
|
|
Loading…
Reference in New Issue