diff --git a/molecule/rocky9/tests/test_default.py b/molecule/rocky9/tests/test_default.py index db08dbc..1ecfe27 100644 --- a/molecule/rocky9/tests/test_default.py +++ b/molecule/rocky9/tests/test_default.py @@ -15,8 +15,7 @@ def test_postgres_running_and_enabled(host): def test_postgres_auth(host): login = host.run( - "source /etc/containers/systemd/postgres.env;" - "podman exec --env PGPASSWORD=$POSTGRES_PASSWORD systemd-postgres psql -U$POSTGRES_USER -c 'select 1' -q $POSTGRES_DB" # noqa :E501 + "podman exec --env PGPASSWORD=postgres systemd-postgres psql -Upostgres -c 'select 1' -q postgres" # noqa :E501 ) assert login.succeeded diff --git a/templates/etc/containers/systemd/postgres.env.j2 b/templates/etc/containers/systemd/postgres.env.j2 index 602a575..75d14f7 100644 --- a/templates/etc/containers/systemd/postgres.env.j2 +++ b/templates/etc/containers/systemd/postgres.env.j2 @@ -8,5 +8,5 @@ POSTGRES_DB={{ postgres_db }} POSTGRES_HOST_AUTH_METHOD={{ postgres_host_auth_method }} {% endif %} {% if postgres_initdb_args | length > 0 %} -POSTGRES_INITDB_ARGS="{{ postgres_initdb_args | join(' ') }}" +POSTGRES_INITDB_ARGS={{ postgres_initdb_args | join(" ") }} {% endif %}