mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +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:
@@ -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
|
||||
Reference in New Issue
Block a user