library/roles/ubuntugis: Role that adds the ubuntugis repo.

This commit is contained in:
Andrea Dell'Amico 2017-05-12 19:32:19 +02:00
parent 9c36221e11
commit 1d69338f13
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
ubuntugis_repo_install: False
ubuntugis_repo: 'ppa:ubuntugis/ppa'
ubuntugis_pkg_state: latest
ubuntugis_packages:
- gdal

9
ubuntugis/tasks/main.yml Normal file
View File

@ -0,0 +1,9 @@
---
- name: Add the ansible ppa for ansible
apt_repository: repo='{{ ubuntugis_repo }}' update_cache=yes
tags: ubuntugis
- name: Install the ansible package
apt: pkg={{ item }} state={{ ubuntugis_pkg_state }} update_cache=yes cache_valid_time=1800
with_items: '{{ ubuntugis_packages }}'
tags: ubuntugis