2016-09-29 16:03:13 +00:00
|
|
|
---
|
|
|
|
# Variable configuration.
|
2016-09-29 19:33:39 +00:00
|
|
|
- name: Include OS-specific variables (Debian).
|
2016-09-29 19:49:33 +00:00
|
|
|
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
2016-09-29 19:33:39 +00:00
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: Include OS-specific variables (RedHat).
|
2016-09-30 03:58:27 +00:00
|
|
|
include_vars: "{{ ansible_os_family }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
2019-08-06 17:42:48 +00:00
|
|
|
when:
|
|
|
|
- ansible_os_family == 'RedHat'
|
|
|
|
- ansible_distribution != 'Fedora'
|
2018-11-06 14:47:35 +00:00
|
|
|
|
|
|
|
- name: Include OS-specific variables (Fedora).
|
|
|
|
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
|
|
|
when: ansible_distribution == 'Fedora'
|
2016-09-29 16:03:13 +00:00
|
|
|
|
|
|
|
- name: Define postgresql_packages.
|
|
|
|
set_fact:
|
|
|
|
postgresql_packages: "{{ __postgresql_packages | list }}"
|
|
|
|
when: postgresql_packages is not defined
|
|
|
|
|
2016-09-29 19:33:39 +00:00
|
|
|
- name: Define postgresql_version.
|
|
|
|
set_fact:
|
|
|
|
postgresql_version: "{{ __postgresql_version }}"
|
|
|
|
when: postgresql_version is not defined
|
|
|
|
|
2018-11-22 02:47:48 +00:00
|
|
|
- name: Define postgresql_daemon.
|
|
|
|
set_fact:
|
|
|
|
postgresql_daemon: "{{ __postgresql_daemon }}"
|
|
|
|
when: postgresql_daemon is not defined
|
|
|
|
|
2016-09-30 01:01:39 +00:00
|
|
|
- name: Define postgresql_data_dir.
|
|
|
|
set_fact:
|
|
|
|
postgresql_data_dir: "{{ __postgresql_data_dir }}"
|
|
|
|
when: postgresql_data_dir is not defined
|
|
|
|
|
2016-09-29 19:33:39 +00:00
|
|
|
- name: Define postgresql_bin_path.
|
|
|
|
set_fact:
|
|
|
|
postgresql_bin_path: "{{ __postgresql_bin_path }}"
|
|
|
|
when: postgresql_bin_path is not defined
|
2016-09-30 03:37:00 +00:00
|
|
|
|
|
|
|
- name: Define postgresql_config_path.
|
|
|
|
set_fact:
|
|
|
|
postgresql_config_path: "{{ __postgresql_config_path }}"
|
|
|
|
when: postgresql_config_path is not defined
|
2020-03-04 18:12:11 +00:00
|
|
|
|
|
|
|
- name: Define postgresql_unix_socket_directories_mode.
|
|
|
|
set_fact:
|
|
|
|
postgresql_unix_socket_directories_mode: >-
|
2020-03-04 18:31:00 +00:00
|
|
|
{{ __postgresql_unix_socket_directories_mode | default('02775') }}
|
2020-03-04 18:12:11 +00:00
|
|
|
when: postgresql_unix_socket_directories_mode is not defined
|