Skip to content

Commit 0938c2c

Browse files
committed
PR #266: Update README for new privs list option.
1 parent aafbf26 commit 0938c2c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ postgresql_users:
118118
- name: jdoe #required; the rest are optional
119119
password: # defaults to not set
120120
encrypted: # defaults to not set
121-
priv: # defaults to not set
122121
role_attr_flags: # defaults to not set
123122
db: # defaults to not set
124123
login_host: # defaults to 'localhost'
@@ -131,6 +130,28 @@ postgresql_users:
131130

132131
A list of users to ensure exist on the server. Only the `name` is required; all other properties are optional.
133132

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+
134155
```yaml
135156
postgres_users_no_log: true
136157
```

0 commit comments

Comments
 (0)