Install the GA plugin requirements.

This commit is contained in:
Andrea Dell'Amico 2023-06-28 14:32:30 +02:00
parent b2e3744932
commit f1825c4489
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 10 additions and 4 deletions

View File

@ -249,19 +249,25 @@
when: ckan_google_analytics | bool
register: install_ckan_google_analytics
notify: Restart CKAN
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
tags: ['ckan', 'ckan_google_analytics', 'ckan_plugins']
- name: Download the KATA CKAN ckanext-oaiphm requirements
pip: requirements={{ ckan_virtenv }}/src/ckanext-googleanalytics/requirements.txt virtualenv={{ ckan_virtenv }} state=present
when: ckan_google_analytics | bool
notify: Restart CKAN
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
when: install_ckan_google_analytics is changed
notify: Restart CKAN
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_plugins' ]
tags: ['ckan', 'ckan_google_analytics', 'ckan_plugins']
- name: Download the CKAN google analytics reports plugin
pip: name='{{ ckan_ga_reports_url }}' virtualenv={{ ckan_virtenv }} state=present editable=True
when: ckan_ga_reports | bool
register: install_ckan_ga_reports
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins' ]
tags: ['ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins']
- name: Setup the CKAN google analytics reports plugin
shell: . /usr/lib/ckan/default/bin/activate ; cd /usr/lib/ckan/default/src/ckanext-ga-report ; paster initdb --config={{ ckan_config_file }}
@ -269,7 +275,7 @@
- install_ckan_ga_reports is changed
- ckan_init_db_and_solr | bool
notify: Restart CKAN
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins' ]
tags: ['ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins']
- name: Download the CKAN star ratings plugin
pip: name='{{ ckan_star_ratings_url }}' virtualenv={{ ckan_virtenv }} editable=true state={{ ckan_star_ratings_state }}