mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Update postgresql_pg_hba.py (#1124)
* Update postgresql_pg_hba.py Fixes #1108 * Create changelog fragment for pull 1124 * Adding a unit test for pg_hba
This commit is contained in:
parent
0f00c65d2c
commit
3a5669991f
3 changed files with 17 additions and 1 deletions
|
@ -58,6 +58,20 @@
|
|||
register: pg_hba_change
|
||||
with_items: "{{pg_hba_test_ips}}"
|
||||
|
||||
- name: Able to add options on rule without
|
||||
postgresql_pg_hba:
|
||||
dest: "/tmp/pg_hba.conf"
|
||||
users: "+some"
|
||||
order: "sud"
|
||||
state: "present"
|
||||
contype: "local"
|
||||
method: "cert"
|
||||
options: "{{ item }}"
|
||||
address: ""
|
||||
with_items:
|
||||
- ""
|
||||
- "clientcert=1"
|
||||
|
||||
- name: Retain options even if they contain spaces
|
||||
postgresql_pg_hba:
|
||||
dest: "/tmp/pg_hba.conf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue