Fix test for empty list

I turns out that the bool filter casts a non-empty list to false. The
proper test seems to compare its length with zero.
This commit is contained in:
Matthias Dellweg 2019-09-02 13:53:55 +02:00
parent a8b2eb0b64
commit 6dff9930cf
No known key found for this signature in database
GPG Key ID: C2BCE3C4382CAFAA
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
group: "{{ postgresql_group }}"
mode: 0600
notify: restart postgresql
when: postgresql_hba_entries | bool
when: postgresql_hba_entries | length > 0
- name: Ensure PostgreSQL unix socket dirs exist.
file: