From 724c7a3aeb479eb1b1248aaac122d0d7308579f4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 30 Sep 2021 19:12:54 +0200 Subject: [PATCH] Install the additional site-packages. --- tasks/ckan.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/ckan.yml b/tasks/ckan.yml index 201f307..267d236 100644 --- a/tasks/ckan.yml +++ b/tasks/ckan.yml @@ -17,7 +17,15 @@ dest: '{{ ckan_libdir }}' remote_src: yes creates: '{{ ckan_virtenv }}/bin/get-pip.py' - tags: [ 'ckan', 'ckan_pkg' ] + tags: [ 'ckan', 'ckan_pkg', 'ckan_python_pkg' ] + +- name: Fix the python version in the CKAN virtualenv + unarchive: + src: 'https://ftp.d4science.org/ubuntu-misc-binaries/python-2.7.14-usrlocal.tar.gz' + dest: '/' + remote_src: yes + creates: '/usr/local/lib/python2.7/ConfigParser.py' + tags: [ 'ckan', 'ckan_pkg', 'ckan_python_pkg' ] - name: Configure the CKAN production configuration file excluding the plugins list ini_file: dest={{ ckan_config_file }} section={{ item.section }} option={{ item.option }} value={{ item.value }} state={{ item.state }} backup=yes