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.
|
2016-11-23 10:13:30 -05:00
|
|
|
apt: update_cache=yes cache_valid_time=600
|
2016-09-29 12:03:13 -04:00
|
|
|
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
|