From 301ab4606ce67376344858a46aadab894d5e5a40 Mon Sep 17 00:00:00 2001 From: AleftinaT <81955571+AleftinaT@users.noreply.github.com> Date: Wed, 28 May 2025 19:20:06 +0400 Subject: [PATCH] Fix regex for global settings configuration Fix regex for global settings configuration. Use full option name, not only prefix. Example: timezone = UTC -#timezone_abbreviations = 'Default' +timezone = 'UTC+3' --- tasks/configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index df434645..b2d9cba1 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -2,7 +2,7 @@ - name: Configure global settings. lineinfile: dest: "{{ postgresql_config_path }}/postgresql.conf" - regexp: "^#?{{ item.option }}.+$" + regexp: "^#?{{ item.option }}\\s*=.+$" line: "{{ item.option }} = '{{ item.value }}'" state: "{{ item.state | default('present') }}" mode: 0644