Skip to content

Commit c8be417

Browse files
committed
Update syntax, remove deprecation warnings
1) Do not use filter syntax for tests 2) Do not use Jinja2 syntax in when clause
1 parent a383951 commit c8be417

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)