From 96a35c2cc6081f1edf4e203a01b0db496ea71bb4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 14 Jul 2016 16:12:19 +0200 Subject: [PATCH] library/roles/ckan/ckan: Fix a problem with the CKAN plugins dependencies. d4science-ghn-cluster: CKAN web frontends for BlueBridge and SoBigData. --- ckan/ckan/defaults/main.yml | 2 +- ckan/ckan/tasks/ckan-plugins.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ckan/ckan/defaults/main.yml b/ckan/ckan/defaults/main.yml index 0674dd76..43994df5 100644 --- a/ckan/ckan/defaults/main.yml +++ b/ckan/ckan/defaults/main.yml @@ -56,7 +56,7 @@ ckan_ldap_prevent_edits: True ckan_ldap_fallback: True # Needed to install some CKAN plugins -additional_packages: +ckan_additional_packages: - git - libxslt1-dev - gcc diff --git a/ckan/ckan/tasks/ckan-plugins.yml b/ckan/ckan/tasks/ckan-plugins.yml index 315d65c4..f24ca4c6 100644 --- a/ckan/ckan/tasks/ckan-plugins.yml +++ b/ckan/ckan/tasks/ckan-plugins.yml @@ -1,4 +1,10 @@ --- +- name: Install some packages dependencies + apt: name={{ item }} state=latest update_cache=yes + with_items: '{{ ckan_additional_packages }}' + when: ckan_geonetwork_harvester + tags: [ 'ckan', 'geonetwork', 'ckan_plugins', 'ckan_pip_deps' ] + - name: Install some plugins dependencies inside the CKAN virtualenv become: True become_user: '{{ ckan_shell_user }}'