2017-05-12 19:32:19 +02:00
|
|
|
---
|
2017-05-12 19:33:57 +02:00
|
|
|
- block:
|
|
|
|
- name: Add the ubuntugis repository
|
|
|
|
apt_repository: repo='{{ ubuntugis_repo }}' update_cache=yes
|
|
|
|
|
2017-05-12 19:45:11 +02:00
|
|
|
- name: Install packages from the ubuntugis repository
|
2017-05-12 19:33:57 +02:00
|
|
|
apt: pkg={{ item }} state={{ ubuntugis_pkg_state }} update_cache=yes cache_valid_time=1800
|
|
|
|
with_items: '{{ ubuntugis_packages }}'
|
|
|
|
|
2017-05-12 19:32:19 +02:00
|
|
|
tags: ubuntugis
|
2017-05-12 19:33:57 +02:00
|
|
|
when: ubuntugis_repo_install
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Remove the ubuntugis repository
|
|
|
|
apt_repository: repo='{{ ubuntugis_repo }}' update_cache=yes state=absent
|
2017-05-12 19:32:19 +02:00
|
|
|
|
|
|
|
tags: ubuntugis
|
2017-05-12 19:33:57 +02:00
|
|
|
when: not ubuntugis_repo_install
|
|
|
|
|