From e3281d67b8f0bce2f2579084d7030c3bd5650649 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 8 Sep 2017 17:37:01 +0200 Subject: [PATCH] Install a modern version of the netcdf package when installing thredds. --- thredds/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/thredds/tasks/main.yml b/thredds/tasks/main.yml index d65f0214..48abfb27 100644 --- a/thredds/tasks/main.yml +++ b/thredds/tasks/main.yml @@ -27,6 +27,13 @@ - name: Get the thredds war file maven_artifact: artifact_id={{ thredds_name }} version={{ thredds_version | default(omit) }} group_id={{ thredds_group_id }} extension={{ thredds_extension | default('war') }} repository_url={{ thredds_repository_url }} dest={{ thredds_download_directory }}/{{ thredds_file }} + + - name: Add the netcdf nschloe ppa + apt_repository: repo='ppa:nschloe/netcdf-backports' update_cache=yes + + - name: Install the NetCDF + apt: name={{ item }} state=latest update_cache=yes cache_valid_time=3600 + with_items: 'netcdf-bin' - name: Unarchive the thredds war unarchive: copy=no src={{ thredds_download_directory }}/{{ thredds_file }} dest={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }} creates={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }}/WEB-INF/lib owner={{ item.user }} group={{ item.user }}