diff --git a/README.md b/README.md index fb656774..955e7da5 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,10 @@ postgresql_users: # List of user privileges to be applied (optional) postgresql_user_privileges: - - name: baz # user name - db: foobar # database - priv: "ALL" # privilege string format: example: INSERT,UPDATE/table:SELECT/anothertable:ALL + - name: baz # user name + db: foobar # database + priv: "ALL" # privilege string format: example: INSERT,UPDATE/table:SELECT/anothertable:ALL + role_attr_flags: "CREATEDB" # role attribute flags ``` There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml diff --git a/tasks/users.yml b/tasks/users.yml index ed5ee83b..3138fd4d 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -25,6 +25,7 @@ priv: "{{item.priv | default('ALL')}}" state: present login_user: "{{postgresql_admin_user}}" + role_attr_flags: "{{item.role_attr_flags | default('')}}" sudo: yes sudo_user: "{{postgresql_admin_user}}" with_items: postgresql_user_privileges