-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "ALL TABLES" in postgresql_user_privileges #341
Comments
what version of ansible are you using? |
This appears to be a limitation of the core https://docs.ansible.com/ansible/latest/modules/postgresql_user_module.html We literally pass the list of privileges in
I'd agree that the documentation for the Ansible module is quite thin, but I think this is a generic problem. I'll have to dig in the ansible code a bit to be sure... |
I am using ansible 2.3.1.0. Should I submit the issue directly to the core module ? |
first try with ansible 2.4 since that is the minimum with this role then if not then I suggest you get on IRC and ask. |
Hey @JeanDaniel-Fischer , did you make any progress with this? Having a similar issue. |
Indeed, this https://docs.ansible.com/ansible/latest/modules/postgresql_privs_module.html is the module that implements this feature |
FWIW, we extended the anxs.postgresql role with an aditional task that implements this:
Then make the
I believe a final solution would look like this, I hope it helps both the maintainers and users missing this feature |
This issue 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! |
Hi,
I am trying to create an account with only CONNECT grant on a specific database and SELECT grand on all tables.
PostgreSQL documentation says "ALL TABLES" can be used (https://www.postgresql.org/docs/9.1/static/sql-grant.html) but I can't manage to use it. The following failed with:
The text was updated successfully, but these errors were encountered: