fix: Usar PostgreSQL disponible en Debian 13 y limpiar duplicados
This commit is contained in:
parent
00f392009f
commit
cc3a619e4b
|
|
@ -14,14 +14,6 @@ authentik_secret: "GenerarStringLargoAleatorio123456"
|
||||||
authentik_pg_pass: "AuthDBSecret123"
|
authentik_pg_pass: "AuthDBSecret123"
|
||||||
pg_version: "16"
|
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
|
# ALICANTE CORE V3.3 - Credenciales estándar
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,28 @@
|
||||||
---
|
---
|
||||||
- name: Instalar PostgreSQL 15
|
- name: Instalar PostgreSQL (versión disponible en Debian)
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- postgresql-15
|
- postgresql
|
||||||
- postgresql-contrib
|
- postgresql-contrib
|
||||||
- python3-psycopg2
|
- python3-psycopg2
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
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
|
- name: Configurar PostgreSQL para escuchar en localhost
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/postgresql/15/main/postgresql.conf
|
path: "/etc/postgresql/{{ pg_version.stdout }}/main/postgresql.conf"
|
||||||
regexp: '^#?listen_addresses'
|
regexp: '^#?listen_addresses'
|
||||||
line: "listen_addresses = 'localhost'"
|
line: "listen_addresses = 'localhost'"
|
||||||
notify: restart postgresql
|
notify: restart postgresql
|
||||||
|
|
||||||
- name: Permitir conexiones locales con password
|
- name: Permitir conexiones locales con password
|
||||||
lineinfile:
|
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'
|
insertafter: '^# "local" is for Unix domain socket'
|
||||||
line: "host all all 127.0.0.1/32 scram-sha-256"
|
line: "host all all 127.0.0.1/32 scram-sha-256"
|
||||||
notify: restart postgresql
|
notify: restart postgresql
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue