forked from ISTI-ansible-roles/ansible-roles
library/roles/ckan/ckan: Fix the google analytics task, for real.
This commit is contained in:
parent
221fbfad07
commit
aa23f1b46c
|
@ -81,6 +81,7 @@ ckan_oai_pmh_state: absent
|
|||
ckan_oai_pmh_url: 'git+https://github.com/florenthemmi/ckanext-oaipmh#egg=ckanext-oaipm'
|
||||
# Google analytics
|
||||
ckan_google_analytics: False
|
||||
ckan_ga_plugin_state: '{{ ckan_plugins_state }}'
|
||||
ckan_google_analytics_name: googleanalytics
|
||||
ckan_google_analytics_url: 'git+https://github.com/ckan/ckanext-googleanalytics.git#egg=ckanext-googleanalytics'
|
||||
ckan_google_analytics_fixed_file: 'http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-catalogue/ckan-d4science-extension/{{ ckan_version }}/ckan-default/plugins/googleanalytics/plugin.py'
|
||||
|
|
|
@ -156,7 +156,7 @@
|
|||
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 }} state={{ ckan_ga_plugin_state | default('present') }}
|
||||
pip: name='{{ ckan_google_analytics_url }}' virtualenv={{ ckan_virtenv }} state={{ ckan_ga_plugin_state }}
|
||||
when: ckan_google_analytics
|
||||
register: install_ckan_google_analytics
|
||||
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
|
||||
|
|
Loading…
Reference in New Issue