Skip to content

Commit a9446bc

Browse files
authored
Merge pull request #18 from ic4f/master
Update syntax, remove deprecation warnings
2 parents a383951 + c8be417 commit a9446bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +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', '>=') }}"
34+
when: "postgresql_version is version_compare('9.3', '>=')"
3535

3636

3737
- name: Include 25ansible_postgresql.conf in postgresql.conf
3838
lineinfile: line="include 'conf.d/25ansible_postgresql.conf'" dest={{ postgresql_conf_dir }}/postgresql.conf backup=yes
3939
notify: Reload PostgreSQL
40-
when: "{{ postgresql_version | version_compare('9.3', '<') }}"
40+
when: "postgresql_version is version_compare('9.3', '<')"
4141

4242
- name: Set config options
4343
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)