Skip to content

Grant schema privileges#606

Open
elsoa-invitech wants to merge 1 commit intoANXS:masterfrom
elsoa-invitech:schema-grant
Open

Grant schema privileges#606
elsoa-invitech wants to merge 1 commit intoANXS:masterfrom
elsoa-invitech:schema-grant

Conversation

@elsoa-invitech
Copy link

Possible fix for #604:

You can configure the schema grant in postgresql_user_privileges array:

This will set grant for database:

    postgresql_user_privileges:
      - name: foouser              # user name
        db: bardb               # database
        privs: ALL                  # privilege
        state: present

And with this patch, you can set for the schema too:

    postgresql_user_privileges:
      - name: foouser              # user name
        db: bardb               # database
        schema: public
        privs: ALL                  # privilege
        state: present

@github-actions
Copy link

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

@github-actions github-actions bot added the stale label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant