From 6908b7c6020b171afb142931594cb41b4dce4856 Mon Sep 17 00:00:00 2001 From: Zsolt Parragi Date: Thu, 24 Sep 2026 11:07:26 +0000 Subject: [PATCH] PG-2795 io_method fact: fall back to worker when IO_METHOD is unset lookup('env') returns an empty string for an unset variable, so default('worker') never applied and postgresql.conf got a bare 'io_method = ' line. postgres then fails to start and the pgpool2 postinst aborts on the invalid config. jenkins always sets IO_METHOD, local runs did not. --- templates/groups/_shared.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/groups/_shared.j2 b/templates/groups/_shared.j2 index 05f10fe6..e5a4bad7 100644 --- a/templates/groups/_shared.j2 +++ b/templates/groups/_shared.j2 @@ -5,7 +5,7 @@ pg_version_to_install: "{{ '{{' }} lookup('env', 'VERSION') | replace('{{ flavor }}-','') {{ '}}' }}" {%- endmacro %} {% macro io_method_fact() %} - io_method: "{{ '{{' }} lookup('env', 'IO_METHOD') | default('worker') {{ '}}' }}" + io_method: "{{ '{{' }} lookup('env', 'IO_METHOD') | default('worker', true) {{ '}}' }}" - name: Fall back to worker io_method on RHEL 8, Rocky 8 and OracleLinux 8, as uring not supported ansible.builtin.set_fact: