diff --git a/tasks/configure.yml b/tasks/configure.yml index df43464..b2d9cba 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