Add install PostGIS in postgresql rôle
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
20191c8873
commit
1bf271a4f4
|
@ -11,5 +11,8 @@ postgresql_effective_cache_size: "{{ (ansible_memtotal_mb * 0.5) | int }}MB"
|
||||||
# PostgreSQL version
|
# PostgreSQL version
|
||||||
postgresql_version: '9.6'
|
postgresql_version: '9.6'
|
||||||
|
|
||||||
#Set locales
|
# Set locales
|
||||||
locales_default: fr_FR.UTF-8
|
locales_default: fr_FR.UTF-8
|
||||||
|
|
||||||
|
# PostGIS
|
||||||
|
postgresql_install_postgis: false
|
||||||
|
|
|
@ -17,3 +17,6 @@
|
||||||
- include: munin.yml
|
- include: munin.yml
|
||||||
|
|
||||||
- include: logrotate.yml
|
- include: logrotate.yml
|
||||||
|
|
||||||
|
- include: postgis.yml
|
||||||
|
when: postgresql_install_postgis == "true"
|
||||||
|
|
5
postgresql/tasks/postgis.yml
Normal file
5
postgresql/tasks/postgis.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- name: Install PostGIS extention
|
||||||
|
apt:
|
||||||
|
name: postgis
|
||||||
|
state: present
|
Loading…
Reference in a new issue