From 26c081a4ac50f5fdbd75432a92aa6dd628dd6932 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Thu, 30 Jul 2026 18:19:08 -0500 Subject: postgresql: fix initdb guard to compare find matched count --- postgresql/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'postgresql/tasks/main.yaml') diff --git a/postgresql/tasks/main.yaml b/postgresql/tasks/main.yaml index 865f111..95d1f23 100644 --- a/postgresql/tasks/main.yaml +++ b/postgresql/tasks/main.yaml @@ -31,7 +31,7 @@ become: yes become_user: "postgres" command: "{{postgresql_initidb_path}} -D {{postgresql_data_dir}}" - when: filesFound == 0 + when: filesFound.matched == 0 - name: ensure postgresql is started become: yes -- cgit v1.2.3