forked from ISTI-ansible-roles/ansible-roles
New tasks for the OAI-PMH plugin.
This commit is contained in:
parent
9d88f841a3
commit
99b4bfb8ab
|
@ -77,7 +77,8 @@ ckan_ckanext_lire_url: 'https://github.com/milicp/ckanext-lire.git'
|
|||
# OAI-PMH
|
||||
ckan_oai_pmh: False
|
||||
ckan_oai_pmh_name: oaipmh
|
||||
ckan_oai_pmh_url: 'https://github.com/kata-csc/ckanext-oaipmh.git'
|
||||
ckan_oai_pmh_state: absent
|
||||
ckan_oai_pmh_url: 'git+https://github.com/florenthemmi/ckanext-oaipmh#egg=ckanext-oaipm'
|
||||
# Google analytics
|
||||
ckan_google_analytics: False
|
||||
ckan_google_analytics_name: googleanalytics
|
||||
|
|
|
@ -144,17 +144,11 @@
|
|||
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 force=yes update={{ ckan_git_plugins_state }}
|
||||
pip: name='{{ ckan_oai_pmh_url }}' virtualenv={{ ckan_virtenv }} state={{ ckan_plugins_state }}
|
||||
when: ckan_oai_pmh
|
||||
register: install_ckan_oai_pmh
|
||||
notify: Restart CKAN
|
||||
tags: [ 'ckan', 'ckan_oai_pmh', 'ckan_plugins' ]
|
||||
|
||||
- name: Setup the CKAN OAI-PMH plugin
|
||||
shell: . /usr/lib/ckan/default/bin/activate ; cd /usr/lib/ckan/default/src/ckanext-oaipmh ; python setup.py develop
|
||||
when: ( install_ckan_oai_pmh | changed )
|
||||
notify: Restart CKAN
|
||||
tags: [ 'ckan', 'ckan_oai_pmh', 'ckan_plugins' ]
|
||||
|
||||
- name: Download the CKAN google analytics plugin python requirements
|
||||
pip: name='genshi' virtualenv={{ ckan_virtenv }} state={{ ckan_plugins_state }}
|
||||
when: ckan_google_analytics
|
||||
|
|
Loading…
Reference in New Issue