forked from ISTI-ansible-roles/ansible-roles
library/roles/ckan/ckan/tasks/ckan-plugins.yml: google analytics plugin, do not install our version anymore. Optionally install the latest version setting the variable 'ckan_ga_plugin_state' to 'latest'.
This commit is contained in:
parent
1fd06c6f83
commit
221fbfad07
|
@ -156,15 +156,15 @@
|
|||
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
|
||||
|
||||
- name: Download the CKAN google analytics plugin
|
||||
pip: name='{{ ckan_google_analytics_url }}' virtualenv={{ ckan_virtenv }} state={{ ckan_plugins_state }}
|
||||
pip: name='{{ ckan_google_analytics_url }}' virtualenv={{ ckan_virtenv }} state={{ ckan_plugins_state }} state={{ ckan_ga_plugin_state | default('present') }}
|
||||
when: ckan_google_analytics
|
||||
register: install_ckan_google_analytics
|
||||
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
|
||||
|
||||
- name: Install a fix for the CKAN google analytics plugin
|
||||
get_url: url={{ ckan_google_analytics_fixed_file }} dest=/usr/lib/ckan/default/src/ckanext-googleanalytics/ckanext/googleanalytics/plugin.py force=yes
|
||||
when: ckan_google_analytics
|
||||
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
|
||||
# - name: Install a fix for the CKAN google analytics plugin
|
||||
# get_url: url={{ ckan_google_analytics_fixed_file }} dest=/usr/lib/ckan/default/src/ckanext-googleanalytics/ckanext/googleanalytics/plugin.py force=yes
|
||||
# when: ckan_google_analytics
|
||||
# tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
|
||||
|
||||
- name: Setup the CKAN google analytics plugin
|
||||
shell: . /usr/lib/ckan/default/bin/activate ; cd /usr/lib/ckan/default/src/ckanext-googleanalytics ; python setup.py develop
|
||||
|
|
Loading…
Reference in New Issue