From eb63ab18513c4d76d21db31ded5786b9236c6a52 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 13 Aug 2024 11:05:45 +0200 Subject: [PATCH] revert pg password --- defaults/main.yml | 3 +-- templates/etc/containers/systemd/postgres.env.j2 | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 7b0863c..1ae21e3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -52,8 +52,7 @@ postgres_podman_args: postgres_log_level: warning postgres_user: postgres -# @var postgres_password:description: Password of the superuser defined in `postgres_user`. -# postgres_password:value: $ "_unset_" +postgres_password: postgres # @var postgres_app_user:description: > # Application user name without superuser privileges. Full access to `postgres_db` diff --git a/templates/etc/containers/systemd/postgres.env.j2 b/templates/etc/containers/systemd/postgres.env.j2 index 17b3010..c43eadc 100644 --- a/templates/etc/containers/systemd/postgres.env.j2 +++ b/templates/etc/containers/systemd/postgres.env.j2 @@ -1,9 +1,7 @@ #jinja2: lstrip_blocks: True {{ ansible_managed | comment }} POSTGRES_USER={{ postgres_user }} -{% if postgres_password is defined %} POSTGRES_PASSWORD={{ postgres_password }} -{% endif %} {% if postgres_app_user is defined and postgres_app_password is defined %} POSTGRES_APP_USER={{ postgres_app_user }} POSTGRES_APP_PASSWORD={{ postgres_app_password }}