The documentation for the postgresql_user module on how user rights should be defined conflicts with itself regarding the format. The format is described as such in the options table:
priv | PostgreSQL privileges string in the format: table:priv1,priv2
However, the examples below use a different format
priv: "CONNECT/products:ALL" priv: "ALL/products:ALL" # Example privileges string format INSERT,UPDATE/table:SELECT/anothertable:ALL
Ansible Loves PostgreSQL blog post mentions another format:
priv: Privileges in "priv1/priv2" or table privileges in "table:priv1,priv2,…" format
I'm having trouble creating read-only users, that is, the SELECT privilege on all tables.
Can someone shed light on the correct format for use, an example of which is providing the user with read-only access in all tables?
source share