You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This collection needs to support the new directive include_dir and a couple more that are present since postgres 16 (or at least not fail when they are present), in this blog they explain the new directives here
ISSUE TYPE
With current version 3.10 there's an error when the file pg_hba.conf has any of these:
include file
include_if_exists file
include_dir directory
But with one of the new directives in the pg_hba.conf file
EXPECTED RESULTS
New entry being created on the file
ACTUAL RESULTS
Rule not being applied and a message about missing colums (that is normal in this case)
"module_stdout": "Traceback (most recent call last):\r\n File "/home/bassols/.ansible/tmp/ansible-tmp-1737460694.0555177-231767-112376591644504/AnsiballZ_postgresql_pg_hba.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/bassols/.ansible/tmp/ansible-tmp-1737460694.0555177-231767-112376591644504/AnsiballZ_postgresql_pg_hba.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/bassols/.ansible/tmp/ansible-tmp-1737460694.0555177-231767-112376591644504/AnsiballZ_postgresql_pg_hba.py", line 47, in invoke_module\r\n runpy.run_module(mod_name='ansible_collections.community.postgresql.plugins.modules.postgresql_pg_hba', init_globals=dict(_module_fqn='ansible_collections.community.postgresql.plugins.modules.postgresql_pg_hba', _modlib_path=modlib_path),\r\n File "/usr/lib/python3.10/runpy.py", line 224, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib/python3.10/runpy.py", line 96, in _run_module_code\r\n _run_code(code, mod_globals, init_globals,\r\n File "/usr/lib/python3.10/runpy.py", line 86, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 1358, in \r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 1259, in main\r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 495, in init\r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 526, in read\r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 572, in add_rule\r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 993, in key\r\n File "/tmp/ansible_community.postgresql.postgresql_pg_hba_payload_6g3voh9x/ansible_community.postgresql.postgresql_pg_hba_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py", line 741, in source\r\n File "/usr/lib/python3.10/ipaddress.py", line 83, in ip_network\r\n raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 network')\r\nValueError: 'None/None' does not appear to be an IPv4 or IPv6 network\r\n",
The text was updated successfully, but these errors were encountered:
SUMMARY
This collection needs to support the new directive include_dir and a couple more that are present since postgres 16 (or at least not fail when they are present), in this blog they explain the new directives here
ISSUE TYPE
With current version 3.10 there's an error when the file pg_hba.conf has any of these:
COMPONENT NAME
community.postgresql.postgresql_pg_hba
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 24.10
STEPS TO REPRODUCE
Any snipped like this
But with one of the new directives in the pg_hba.conf file
EXPECTED RESULTS
New entry being created on the file
ACTUAL RESULTS
Rule not being applied and a message about missing colums (that is normal in this case)
The text was updated successfully, but these errors were encountered: