From adb2bc707ea3851badfa937a7be7b4efd1c60a3b Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Tue, 6 Aug 2024 18:24:57 +0300 Subject: [PATCH] Update main.yml --- roles/patroni/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/patroni/tasks/main.yml b/roles/patroni/tasks/main.yml index 512fa2e5c..123945fea 100644 --- a/roles/patroni/tasks/main.yml +++ b/roles/patroni/tasks/main.yml @@ -431,11 +431,11 @@ # patroni bootstrap failure is possible if the PostgreSQL config files are missing - name: Prepare PostgreSQL | make sure PostgreSQL config directory exists ansible.builtin.file: - path: "{{ postgresql_conf_dir }}" + path: /etc/postgresql state: directory owner: postgres group: postgres - mode: "0755" + recurse: true when: ansible_os_family == "Debian" and postgresql_packages|join(" ") is not search("postgrespro")