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:
parent
036f853d42
commit
37bdefae74
2 changed files with 66 additions and 19 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue