Skip to content

Commit 0a824f2

Browse files
author
Mauro Oviedo
committed
Added include_vars usage to include ubuntu/xenial specific vars.
1 parent 9deddf9 commit 0a824f2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tasks/extensions/postgis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# file: postgresql/tasks/extensions/postgis.yml
22

3+
- include_vars: "{{ item }}"
4+
with_first_found:
5+
- "../vars/{{ ansible_distribution_release }}.yml"
6+
- "../vars/empty.yml"
7+
38
- name: PostgreSQL | Extensions | Make sure the postgis extensions are installed
49
apt:
510
name: "{{item}}"
611
state: present
712
update_cache: yes
813
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
9-
with_items:
10-
- libgeos-c1
11-
- "postgresql-{{postgresql_version}}-postgis-{{postgresql_ext_postgis_version}}"
12-
- "postgresql-{{postgresql_version}}-postgis-scripts"
14+
with_items: "{{ postgresql_ext_postgis_deps }}"
1315
notify:
1416
- restart postgresql

0 commit comments

Comments
 (0)