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 }}