From c71160d59e15262d9933b51ada05c43da18e0d33 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 8 Jun 2021 19:21:27 +0200 Subject: [PATCH] install libnetcdf --- tasks/main.yml | 7 +++++++ vars/main.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 2082364..ea45a48 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,6 +9,13 @@ tags: [ 'thredds', 'tomcat' ] - block: + - name: Install some prerequisite deb packages + apt: + pkg: '{{ thredds_dpkg_requirements }}' + state: present + cache_valid_time: 1800 + when: ansible_distribution_file_variety == "Debian" + - name: Create the Thredds webapp directory file: path={{ item.instance_path }}/webapps/{{ thredds_app_name | lower }} state=directory owner={{ item.user }} group={{ item.user }} with_items: '{{ tomcat_m_instances }}' diff --git a/vars/main.yml b/vars/main.yml index fcc4ad1..4857b6c 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -7,3 +7,5 @@ thredds_file: '{{ thredds_name }}-{{ thredds_version }}.{{ thredds_extension }}' thredds_repository_url: 'https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases' thredds_download_directory: /srv thredds_public_netcdf_dir: '{{ thredds_data_content_dir }}/thredds/public/netcdf/' +thredds_dpkg_requirements: + - 'libnetcdf13'