library/roles/ckan/ckan: Fix the google analytics task, for real.

This commit is contained in:
Andrea Dell'Amico 2018-02-22 17:30:28 +01:00
parent 221fbfad07
commit aa23f1b46c
2 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ ckan_oai_pmh_state: absent
ckan_oai_pmh_url: 'git+https://github.com/florenthemmi/ckanext-oaipmh#egg=ckanext-oaipm' ckan_oai_pmh_url: 'git+https://github.com/florenthemmi/ckanext-oaipmh#egg=ckanext-oaipm'
# Google analytics # Google analytics
ckan_google_analytics: False ckan_google_analytics: False
ckan_ga_plugin_state: '{{ ckan_plugins_state }}'
ckan_google_analytics_name: googleanalytics ckan_google_analytics_name: googleanalytics
ckan_google_analytics_url: 'git+https://github.com/ckan/ckanext-googleanalytics.git#egg=ckanext-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' 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'

View File

@ -156,7 +156,7 @@
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ] tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
- name: Download the CKAN google analytics plugin - 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 when: ckan_google_analytics
register: install_ckan_google_analytics register: install_ckan_google_analytics
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ] tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]