Untitled conversation
- User
{"changed": false, "msg": "Unsupported parameters for (community.postgresql.postgresql_pg_hba) module: auth_method, database, user Supported parameters include: address, attributes, backup, backup_file, contype, create, databases, dest, group, method, mode, netmask, options, order, owner, selevel, serole, setype, seuser, state, unsafe_writes, users"} community.postgresql.postgresql_pg_hba: dest: "{{ postgresql_data_dir }}/pg_hba.conf" database: "{{ db_name }}" contype : local user: "{{ db_user }}" auth_method: scram-sha-256
- Assistant
The error message you're seeing indicates that the module
community.postgresql.postgresql_pg_hbadoes not recognize the parametersauth_method,database, oruser. The supported parameters for this module are:address,attributes,backup,backup_file,contype,create,databases,dest,group,method,mode,netmask,options,order,owner,selevel,serole,setype,state,unsafe_writes, andusers.Here's a corrected version of your playbook snippet using the proper parameter names:
yaml