Skip to content

Commit 2d0ad10

Browse files
committed
Merge pull request #3 from asmigala/fix-include-dir
Fix config for PostgreSQL < 9.3
2 parents 724f1ad + c582335 commit 2d0ad10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
- name: Set conf.d include in postgresql.conf
3232
lineinfile: line="include_dir 'conf.d'" dest={{ postgresql_conf_dir }}/postgresql.conf backup=yes
3333
notify: Reload PostgreSQL
34+
when: "{{ postgresql_version | version_compare('9.3', '>=') }}"
35+
36+
37+
- name: Include 25ansible_postgresql.conf in postgresql.conf
38+
lineinfile: line="include 'conf.d/25ansible_postgresql.conf'" dest={{ postgresql_conf_dir }}/postgresql.conf backup=yes
39+
notify: Reload PostgreSQL
40+
when: "{{ postgresql_version | version_compare('9.3', '<') }}"
3441

3542
- name: Set config options
3643
template: src=25ansible_postgresql.conf.j2 dest={{ postgresql_conf_dir }}/conf.d/25ansible_postgresql.conf owner=postgres group=postgres backup=yes

0 commit comments

Comments
 (0)