From bef922d17688fc7c9e9d49e870ce8e53db396155 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 7 Jun 2017 18:31:43 +0200 Subject: [PATCH] library/roles/ckan/ckan: do not update the installed plugins by default. --- ckan/ckan/defaults/main.yml | 4 +++- ckan/ckan/tasks/ckan-plugins.yml | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ckan/ckan/defaults/main.yml b/ckan/ckan/defaults/main.yml index ae73470..d45d644 100644 --- a/ckan/ckan/defaults/main.yml +++ b/ckan/ckan/defaults/main.yml @@ -29,7 +29,9 @@ ckan_db_user: ckan ckan_init_db_and_solr: True # CKAN plugins -ckan_plugins_state: latest +ckan_plugins_state: present +# yes: update the repository. no, do not update +ckan_git_plugins_state: 'no' # Order is important ckan_geonetwork_harvester: False ckan_ckanext_harvester_url: 'git+https://github.com/ckan/ckanext-harvest.git#egg=ckanext-harvest' diff --git a/ckan/ckan/tasks/ckan-plugins.yml b/ckan/ckan/tasks/ckan-plugins.yml index 0c326d0..0a93c00 100644 --- a/ckan/ckan/tasks/ckan-plugins.yml +++ b/ckan/ckan/tasks/ckan-plugins.yml @@ -74,7 +74,7 @@ tags: [ 'ckan', 'ckan_dcat', 'ckan_plugins' ] - name: Download the CKAN Geonetwork plugin code - git: repo={{ ckan_geonetwork_harvester_url }} dest=/usr/lib/ckan/default/src/ckanext-geonetwork + git: repo={{ ckan_geonetwork_harvester_url }} dest=/usr/lib/ckan/default/src/ckanext-geonetwork force=yes update={{ ckan_git_plugins_state }} when: ckan_geonetwork_harvester register: install_geonetwork_harvester tags: [ 'ckan', 'ckan_geonetwork', 'ckan_plugins' ] @@ -120,7 +120,7 @@ tags: [ 'ckan', 'ckan_pages', 'ckan_plugins' ] - name: Download the CKAN LDAP plugin code - git: repo={{ ckan_ldap_url }} dest=/usr/lib/ckan/default/src/ckanext-ldap + git: repo={{ ckan_ldap_url }} dest=/usr/lib/ckan/default/src/ckanext-ldap force=yes update={{ ckan_git_plugins_state }} when: ckan_ldap register: install_ldap_plugin tags: [ 'ckan', 'ckan_ldap', 'ckan_plugins' ] @@ -132,7 +132,7 @@ tags: [ 'ckan', 'ckan_ldap', 'ckan_plugins' ] - name: Download the CKAN LIRE plugin code - git: repo={{ ckan_ckanext_lire_url }} dest={{ ckan_virtenv }}/src/ckanext-lire + git: repo={{ ckan_ckanext_lire_url }} dest={{ ckan_virtenv }}/src/ckanext-lire force=yes update={{ ckan_git_plugins_state }} when: ckan_ckanext_lire register: install_lire_plugin tags: [ 'ckan', 'ckan_lire', 'ckan_plugins' ] @@ -144,7 +144,7 @@ tags: [ 'ckan', 'ckan_lire', 'ckan_plugins' ] - name: Download the CKAN OAI-PMH plugin - git: repo={{ ckan_oai_pmh_url }} dest=/usr/lib/ckan/default/src/ckanext-oaipmh + git: repo={{ ckan_oai_pmh_url }} dest=/usr/lib/ckan/default/src/ckanext-oaipmh force=yes update={{ ckan_git_plugins_state }} when: ckan_oai_pmh register: install_ckan_oai_pmh tags: [ 'ckan', 'ckan_oai_pmh', 'ckan_plugins' ]