From 1e150cda015e47d8b54f83be1dae9e020ec06b80 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2020 21:26:18 +0200 Subject: [PATCH] postgresql_user: add note explaining how to work with SCRAM-SHA passwords (#869) (#923) (cherry picked from commit 7ac6db2490f7382137a096bf56b87b35333d639b) Co-authored-by: Andrew Klychkov --- plugins/modules/database/postgresql/postgresql_user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/database/postgresql/postgresql_user.py b/plugins/modules/database/postgresql/postgresql_user.py index 74bce3dc1f..b0ca7368d1 100644 --- a/plugins/modules/database/postgresql/postgresql_user.py +++ b/plugins/modules/database/postgresql/postgresql_user.py @@ -156,7 +156,9 @@ notes: - If you specify PUBLIC as the user (role), then the privilege changes will apply to all users (roles). You may not specify password or role_attr_flags when the PUBLIC user is specified. - SCRAM-SHA-256-hashed passwords (SASL Authentication) require PostgreSQL version 10 or newer. - On the previous versions the whole hashed string will be used as a password. + On the previous versions the whole hashed string is used as a password. +- 'Working with SCRAM-SHA-256-hashed passwords, be sure you use the I(environment:) variable + C(PGOPTIONS: "-c password_encryption=scram-sha-256") (see the provided example).' seealso: - module: community.general.postgresql_privs - module: community.general.postgresql_membership