1
0
Fork 0
mirror of https://github.com/geerlingguy/ansible-role-postgresql.git synced 2024-11-11 13:50:50 -05:00
postgresql/tests/test.yml

24 lines
618 B
YAML
Raw Normal View History

---
- hosts: all
2016-09-29 15:33:39 -04:00
vars:
postgresql_databases:
- name: example
postgresql_users:
- name: jdoe
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
- 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'
roles:
- role_under_test