2016-09-29 12:03:13 -04:00
|
|
|
---
|
|
|
|
# Variable configuration.
|
2016-09-29 15:33:39 -04:00
|
|
|
- name: Include OS-specific variables (Debian).
|
2016-09-29 15:42:03 -04:00
|
|
|
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version.split(".")[0] }}.yml"
|
2016-09-29 15:33:39 -04:00
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: Include OS-specific variables (RedHat).
|
2016-09-29 12:03:13 -04:00
|
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
2016-09-29 15:33:39 -04:00
|
|
|
when: ansible_os_family == 'RedHat'
|
2016-09-29 12:03:13 -04:00
|
|
|
|
|
|
|
- name: Define postgresql_packages.
|
|
|
|
set_fact:
|
|
|
|
postgresql_packages: "{{ __postgresql_packages | list }}"
|
|
|
|
when: postgresql_packages is not defined
|
|
|
|
|
|
|
|
- name: Define postgresql_daemon.
|
|
|
|
set_fact:
|
|
|
|
postgresql_daemon: "{{ __postgresql_daemon }}"
|
|
|
|
when: postgresql_daemon is not defined
|
2016-09-29 15:33:39 -04:00
|
|
|
|
|
|
|
- name: Define postgresql_version.
|
|
|
|
set_fact:
|
|
|
|
postgresql_version: "{{ __postgresql_version }}"
|
|
|
|
when: postgresql_version is not defined
|
|
|
|
|
|
|
|
- name: Define postgresql_bin_path.
|
|
|
|
set_fact:
|
|
|
|
postgresql_bin_path: "{{ __postgresql_bin_path }}"
|
|
|
|
when: postgresql_bin_path is not defined
|