library/roles/ckan/ckan/tasks/ckan-plugins.yml: Do not init the db when installing certaing plugins, if the DB is already configured.

This commit is contained in:
Andrea Dell'Amico 2017-06-07 17:24:42 +02:00
parent ad08241d76
commit c6891126e5
1 changed files with 9 additions and 3 deletions

View File

@ -30,7 +30,9 @@
- name: Initialize the CKAN ckanext-harvest plugin
shell: . /usr/lib/ckan/default/bin/activate ; paster --plugin=ckanext-harvest harvester initdb --config={{ ckan_config_file }}
when: ( ckanext_harvest_install | changed )
when:
- ( ckanext_harvest_install | changed )
- ckan_init_db_and_solr
tags: [ 'ckan', 'geonetwork', 'ckan_plugins' ]
- name: Download the CKAN ckanext-spatial plugin
@ -48,7 +50,9 @@
- name: Initialize the CKAN ckanext-spatial plugin
shell: . /usr/lib/ckan/default/bin/activate ; paster --plugin=ckanext-spatial spatial initdb --config={{ ckan_config_file }}
when: ( ckanext_spatial_install | changed )
when:
- ( ckanext_spatial_install | changed )
- ckan_init_db_and_solr
tags: [ 'ckan', 'ckan_spatial', 'ckan_plugins' ]
- name: Download the CKAN ckanext-geoview plugin
@ -182,7 +186,9 @@
- 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 }}
when: ( install_ckan_ga_reports | changed )
when:
- ( install_ckan_ga_reports | changed )
- ckan_init_db_and_solr
notify: Restart CKAN
tags: [ 'ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins' ]