add Ubuntu 20.04 support

This commit is contained in:
ace
2023-03-15 12:26:09 +03:00
parent 9207b91282
commit f753c5d1af
5 changed files with 35 additions and 0 deletions

View File

@ -1,4 +1,11 @@
---
- name: Create data directory
file:
path: "{{ postgresql_data_dir }}"
owner: "postgres"
group: "postgres"
state: directory
- name: Merge user options for PostgreSQL config
set_fact:
postgresql_combined_parameters: "{{ postgresql_default_parameters | combine(postgresql_custom_parameters|default({}), recursive=true) }}"

View File

@ -7,7 +7,9 @@
params:
files:
- "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yaml"
- "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_version'] }}.yaml"
- "{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version'] }}.yaml"
- "{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_version'] }}.yaml"
paths:
- "vars"
tags: postgresql_vars

View File

@ -34,6 +34,7 @@
- name: Include PostgreSQL configuration
vars:
postgresql_archive_command: "cd ."
postgresql_restore_command: "{{ postgresql_wal_g_binary_name ~ ' --config ' ~ postgresql_home_dir ~ '/' ~ postgresql_wal_g_restore_config_name ~ ' wal-fetch %f %p' }}"
include_tasks: config.yaml