File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 31
31
- name : Set conf.d include in postgresql.conf
32
32
lineinfile : line="include_dir 'conf.d'" dest={{ postgresql_conf_dir }}/postgresql.conf backup=yes
33
33
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', '<') }}"
34
41
35
42
- name : Set config options
36
43
template : src=25ansible_postgresql.conf.j2 dest={{ postgresql_conf_dir }}/conf.d/25ansible_postgresql.conf owner=postgres group=postgres backup=yes
You can’t perform that action at this time.
0 commit comments