1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-30 07:50:43 +00:00

add role_attr_flags parameter to postgresql_user

Pass role_attr_flags a list of comma separated role
attributes when creating or updating a user.
This commit is contained in:
Jeremiah Heller 2012-10-15 14:42:06 -07:00
parent 036f853d42
commit 37bdefae74
2 changed files with 66 additions and 19 deletions

View file

@ -36,3 +36,6 @@
- name: ensure user has access to database
action: postgresql_user db=$dbname user=$dbuser password=$dbpassword priv=ALL
- name: ensure user does not have unnecessary privilege
action: postgresql_user user=$dbuser role_attr_flags=NOSUPERUSER,NOCREATEDB