Skip to content

Commit 9b93669

Browse files
authored
Merge pull request #38 from diraol/patch-1
2 parents c8fa761 + 4bd76cf commit 9b93669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@
5151
check_mode: true
5252
changed_when: __postgresql_include_dir_result is not changed # yeah...
5353
register: __postgresql_include_dir_result
54-
when: "postgresql_version is version_compare('9.3', '>=')"
54+
when: postgresql_version is version('9.3', '>=')
5555

5656
- name: Set conf.d include in postgresql.conf
5757
lineinfile:
5858
line: "include_dir 'conf.d'"
5959
path: "{{ postgresql_conf_dir }}/postgresql.conf"
6060
backup: true
6161
notify: Reload PostgreSQL
62-
when: "postgresql_version is version_compare('9.3', '>=') and __postgresql_include_dir_result is changed"
62+
when: postgresql_version is version('9.3', '>=') and __postgresql_include_dir_result is changed
6363

6464
- name: Include 25ansible_postgresql.conf in postgresql.conf
6565
lineinfile:
6666
line: "include 'conf.d/25ansible_postgresql.conf'"
6767
dest: "{{ postgresql_conf_dir }}/postgresql.conf"
6868
backup: true
6969
notify: Reload PostgreSQL
70-
when: "postgresql_version is version_compare('9.3', '<')"
70+
when: postgresql_version is version('9.3', '>=')
7171

7272
- name: Set config options
7373
template:

0 commit comments

Comments
 (0)