@@ -118,7 +118,6 @@ postgresql_users:
118
118
- name: jdoe #required; the rest are optional
119
119
password: # defaults to not set
120
120
encrypted: # defaults to not set
121
- priv: # defaults to not set
122
121
role_attr_flags: # defaults to not set
123
122
db: # defaults to not set
124
123
login_host: # defaults to 'localhost'
@@ -131,6 +130,28 @@ postgresql_users:
131
130
132
131
A list of users to ensure exist on the server. Only the `name` is required; all other properties are optional.
133
132
133
+ ` ` ` yaml
134
+ postgresql_privs:
135
+ - db: exampledb # database (required)
136
+ roles: jdoe # role(s) the privs apply to (required)
137
+ privs: # comma separated list of privileges - defaults to not set
138
+ type: # type of database object to set privileges on - defaults to not set
139
+ objs: # list of database objects to set privileges on - defaults to not set
140
+ schema: # defaults to not set
141
+ session_role: # defaults to not set
142
+ fail_on_role: # defaults to true
143
+ grant_option: # defaults to not set
144
+ target_roles: # defaults to not set
145
+ login_host: # defaults to 'localhost'
146
+ login_password: # defaults to not set
147
+ login_user: # defaults to '{{ postgresql_user }}'
148
+ login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
149
+ port: # defaults to not set
150
+ state: # defaults to 'present'
151
+ ` ` `
152
+
153
+ A list of privileges to configure (new in role version 4.0.0).
154
+
134
155
` ` ` yaml
135
156
postgres_users_no_log: true
136
157
` ` `
0 commit comments