]: FAILED! => {"changed": false, "msg": "Unsupported parameters for…
- User
]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.postgresql.postgresql_user) module: login Supported parameters include: ca_cert, comment, conn_limit, db, encrypted, expires, fail_on_user, groups, login_host, login_password, login_unix_socket, login_user, no_password_changes, password, port, priv, role_attr_flags, session_role, ssl_mode, state, trust_input, user"} - name: étape 4.6 • Assignation d'un mot de passe pour l'utilisateur postgres community.postgresql.postgresql_user: name: postgres password: "{{ db_admin_passwd }}" login: true
- Assistant
The error message indicates that the
loginparameter is not supported by thecommunity.postgresql.postgresql_usermodule. Instead, you should use the appropriate parameters provided by the module documentation. Thelogin_password,login_user,login_host, and other parameters should be used for authenticating the connection to the PostgreSQL server.Here’s how you can modify your task to set the password for the
postgresuser:yaml