Replies: 6 comments 2 replies
|
Hi, did you find the solution ? |
0 replies
|
If we look at the documentation of ansible : https://docs.ansible.com/ansible/latest/collections/community/postgresql/postgresql_privs_module.html In our case we need to do : So objs should be pg_monitor But I do not see this in ANXS/postgresql module... |
0 replies
|
I did not find but you can do in a task |
0 replies
|
You can try this: postgresql_user_privileges:
- roles: my_user
database: postgres
type: group
objs: pg_monitor
admin_option: false |
0 replies
|
And/or with - name: Grant pg_monitor to my_user (without admin option)
community.postgresql.postgresql_privs:
roles: my_user
database: postgres
type: group
objs: pg_monitor
admin_option: false |
2 replies
|
I ended up using a task for achieve this: - name: Add myuser to "pg_monitor" group
community.postgresql.postgresql_membership:
group: pg_monitor
target_role: myuser
state: present
become: true
become_user: postgres |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have already tried configuring the
postgresql_user_privilegesvariable as following"My PostgreSQL version is 12.13
All reactions