From 590df03eb0c369bceb0c30c571e6ae0d763da4da Mon Sep 17 00:00:00 2001 From: Greg Dubicki Date: Sun, 10 Jul 2022 10:14:30 +0200 Subject: [PATCH] Simplify more as we need to match only the beginning of the string --- tasks/variables.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/variables.yml b/tasks/variables.yml index cb5610b..9120dc2 100644 --- a/tasks/variables.yml +++ b/tasks/variables.yml @@ -59,9 +59,9 @@ - name: Define postgresql_effective_log_dir, if postgresql_log_dir is absolute set_fact: postgresql_effective_log_dir: '{{ postgresql_log_dir }}' - when: postgresql_log_dir is regex("^/.*") + when: postgresql_log_dir is match("/") - name: Define postgresql_effective_log_dir, if postgresql_log_dir is relative set_fact: postgresql_effective_log_dir: '{{ postgresql_data_dir }}/{{ postgresql_log_dir }}' - when: postgresql_log_dir is not regex("^/.*") + when: postgresql_log_dir is not match("/")