mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
* postgresql_privs: allow lowercased PUBLIC role
* add changelog fragment
* improve CI
* fix changelog fragment
(cherry picked from commit bfdb76e60d
)
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
fdf244d488
commit
71633249c4
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