mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 02:30:22 -07:00
postgresql_privs: allow lowercased PUBLIC role (#858)
* postgresql_privs: allow lowercased PUBLIC role * add changelog fragment * improve CI * fix changelog fragment
This commit is contained in:
parent
eb24b5707e
commit
bfdb76e60d
3 changed files with 24 additions and 1 deletions
|
@ -343,6 +343,23 @@
|
|||
target_roles: "{{ db_user_with_dots2 }}"
|
||||
trust_input: no
|
||||
|
||||
# Bugfix for https://github.com/ansible-collections/community.general/issues/857
|
||||
- name: Test passing lowercase PUBLIC role
|
||||
become_user: "{{ pg_user }}"
|
||||
become: yes
|
||||
postgresql_privs:
|
||||
db: "{{ db_name }}"
|
||||
login_user: "{{ pg_user }}"
|
||||
type: 'database'
|
||||
privs: 'connect'
|
||||
role: 'public'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result.queries == ["GRANT CONNECT ON database \"{{ db_name }}\" TO PUBLIC;"]
|
||||
|
||||
#
|
||||
# Cleanup
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue