diff --git a/ckan/ckan/defaults/main.yml b/ckan/ckan/defaults/main.yml index ae73470b..d45d6441 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 0c326d01..0a93c00d 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' ]