2016-09-29 12:03:13 -04:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
|
2016-09-29 15:33:39 -04:00
|
|
|
vars:
|
|
|
|
postgresql_databases:
|
|
|
|
- name: example
|
|
|
|
postgresql_users:
|
|
|
|
- name: jdoe
|
|
|
|
|
2016-09-29 12:03:13 -04:00
|
|
|
pre_tasks:
|
|
|
|
- name: Update apt cache.
|
|
|
|
apt: update_cache=yes
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
2016-09-30 00:11:03 -04:00
|
|
|
- name: Set custom variable name for old CentOS 6 PostgreSQL install.
|
|
|
|
set_fact:
|
|
|
|
postgresql_global_config_options:
|
|
|
|
- option: unix_socket_directory
|
|
|
|
value: '{{ postgresql_unix_socket_directories[0] }}'
|
|
|
|
when: ansible_os_family == 'RedHat' and ansible_distribution_version.split('.')[0] == '6'
|
|
|
|
|
2016-09-29 12:03:13 -04:00
|
|
|
roles:
|
|
|
|
- role_under_test
|