Role that add our internal trusty repository and installs newer hdf5 library and tools.

This commit is contained in:
Andrea Dell'Amico 2018-04-04 20:21:53 +02:00
parent a5d1babc0b
commit 90850eefa6
2 changed files with 22 additions and 0 deletions

9
hdf5/defaults/main.yml Normal file
View File

@ -0,0 +1,9 @@
---
hdf5_install: True
hdf5_pkg_state: latest
hdf5_pkgs_list:
- hdf5-tools
- hdf5-helpers
- libhdf5-10
- libhdf5-dev

13
hdf5/tasks/main.yml Normal file
View File

@ -0,0 +1,13 @@
---
- block:
- name: apt key for the internal ppa repository
apt_key: url=http://ppa.research-infrastructures.eu/system/keys/system-archive.asc state=present
- name: Setup the infrascience trusty repository
apt_repository: repo='deb [arch=amd64] http://ppa.research-infrastructures.eu/trusty-infrascience {{ ansible_distribution_release }} main' update_cache=yes
- name: Install the hdf5 packages
apt: pkg={{ item }} state={{ hdf5_pkg_state }} update_cache=yes cache_valid_time=3600
with_items: '{{ hdf5_pkgs_list }}'
tags: [ 'hdf5' ]