fix: Usar PostgreSQL disponible en Debian 13 y limpiar duplicados

This commit is contained in:
SysAdmin DCC 2025-12-03 00:15:58 +00:00
parent 00f392009f
commit cc3a619e4b
2 changed files with 9 additions and 12 deletions

View File

@ -14,14 +14,6 @@ authentik_secret: "GenerarStringLargoAleatorio123456"
authentik_pg_pass: "AuthDBSecret123"
pg_version: "16"
# --- ALICANTE CORE V3.2 CONFIGURATION ---
# Carbone (Stack Docs)
core_ip: "10.10.10.104"
a412b12 (Fix: V3.2 upgrade paths)
# Activepieces Configuration
ap_encryption_key: "ff7d959b67bc4b31752d51c3db3bbb5b"
ap_jwt_secret: "eW4o2aZs0yNT3Z9kSS6IYDLtMtJ/Uh1acV0HIYOfrtI="
# ============================================================================
# ALICANTE CORE V3.3 - Credenciales estándar
# ============================================================================

View File

@ -1,23 +1,28 @@
---
- name: Instalar PostgreSQL 15
- name: Instalar PostgreSQL (versión disponible en Debian)
apt:
name:
- postgresql-15
- postgresql
- postgresql-contrib
- python3-psycopg2
state: present
update_cache: yes
- name: Detectar versión de PostgreSQL instalada
shell: "ls -1 /etc/postgresql/ | head -1"
register: pg_version
changed_when: false
- name: Configurar PostgreSQL para escuchar en localhost
lineinfile:
path: /etc/postgresql/15/main/postgresql.conf
path: "/etc/postgresql/{{ pg_version.stdout }}/main/postgresql.conf"
regexp: '^#?listen_addresses'
line: "listen_addresses = 'localhost'"
notify: restart postgresql
- name: Permitir conexiones locales con password
lineinfile:
path: /etc/postgresql/15/main/pg_hba.conf
path: "/etc/postgresql/{{ pg_version.stdout }}/main/pg_hba.conf"
insertafter: '^# "local" is for Unix domain socket'
line: "host all all 127.0.0.1/32 scram-sha-256"
notify: restart postgresql