fix postgresql logs

This commit is contained in:
ace
2023-05-13 01:19:23 +03:00
parent a0dcfdd00f
commit d1258e7423
4 changed files with 20 additions and 1 deletions

View File

@ -56,3 +56,12 @@
when:
- patroni_postgresql_package_name in ansible_facts.packages
- ansible_facts.packages[patroni_postgresql_package_name][0]['version'] != (patroni_postgresql_version|string + "-" + patroni_postgresql_version_build|string)
- name: Create folder for PostgreSQL logs
file:
name: "{{ item }}"
state: directory
owner: "root"
group: "postgres"
loop:
- "{{ patroni_postgresql_log_dir }}"