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

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