2016-09-29 11:03:13 -05:00
|
|
|
---
|
|
|
|
# Variable configuration.
|
|
|
|
- include: variables.yml
|
2016-11-02 12:02:30 -05:00
|
|
|
static: no
|
2016-09-29 11:03:13 -05:00
|
|
|
|
|
|
|
# Setup/install tasks.
|
|
|
|
- include: setup-RedHat.yml
|
|
|
|
when: ansible_os_family == 'RedHat'
|
2016-11-02 12:02:30 -05:00
|
|
|
static: no
|
2016-09-29 11:03:13 -05:00
|
|
|
|
|
|
|
- include: setup-Debian.yml
|
|
|
|
when: ansible_os_family == 'Debian'
|
2016-11-02 12:02:30 -05:00
|
|
|
static: no
|
2016-09-29 11:03:13 -05:00
|
|
|
|
2016-09-29 12:04:34 -05:00
|
|
|
- include: initialize.yml
|
2016-09-29 22:58:27 -05:00
|
|
|
- include: configure.yml
|
2016-09-29 12:04:34 -05:00
|
|
|
|
2016-09-29 11:59:22 -05:00
|
|
|
- name: Ensure PostgreSQL is started and enabled on boot.
|
|
|
|
service:
|
|
|
|
name: "{{ postgresql_daemon }}"
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
|
2016-09-29 11:03:13 -05:00
|
|
|
# Configure PostgreSQL.
|
|
|
|
- include: users.yml
|
2017-06-01 13:49:48 +02:00
|
|
|
- include: databases.yml
|