feat: add periplus database configuration and enable PostGIS extensions

This commit is contained in:
2026-03-07 12:11:05 +00:00
parent 042df52bca
commit 60006de208
4 changed files with 20 additions and 1 deletions

View File

@@ -38,6 +38,7 @@
- postgresql-17
- libpq-dev
- postgresql-server-dev-17
- postgresql-17-postgis-3
state: present
update_cache: true
@@ -200,6 +201,7 @@
- { user: "{{ anythingllm_db_user }}", password: "{{ anythingllm_db_password }}" }
- { user: "{{ hass_db_user }}", password: "{{ hass_db_password }}" }
- { user: "{{ nike_db_user }}", password: "{{ nike_db_password }}" }
- { user: "{{ periplus_db_user }}", password: "{{ periplus_db_password }}" }
no_log: true
- name: Create application databases with owners
@@ -221,6 +223,19 @@
- { name: "{{ anythingllm_db_name }}", owner: "{{ anythingllm_db_user }}" }
- { name: "{{ hass_db_name }}", owner: "{{ hass_db_user }}" }
- { name: "{{ nike_db_name }}", owner: "{{ nike_db_user }}" }
- { name: "{{ periplus_db_name }}", owner: "{{ periplus_db_user }}" }
- name: Enable postgis and pg_trgm extensions in periplus database
community.postgresql.postgresql_ext:
name: "{{ item }}"
db: "{{ periplus_db_name }}"
state: present
login_user: postgres
login_password: "{{ postgres_password }}"
login_host: localhost
loop:
- postgis
- pg_trgm
- name: Enable pgvector extension in databases
community.postgresql.postgresql_ext: