mirror of
https://github.com/geerlingguy/ansible-role-postgresql.git
synced 2024-11-11 13:50:50 -05:00
26 lines
516 B
YAML
26 lines
516 B
YAML
---
|
|
# Variable configuration.
|
|
- include: variables.yml
|
|
static: no
|
|
|
|
# Setup/install tasks.
|
|
- include: setup-RedHat.yml
|
|
when: ansible_os_family == 'RedHat'
|
|
static: no
|
|
|
|
- include: setup-Debian.yml
|
|
when: ansible_os_family == 'Debian'
|
|
static: no
|
|
|
|
- include: initialize.yml
|
|
- include: configure.yml
|
|
|
|
- name: Ensure PostgreSQL is started and enabled on boot.
|
|
service:
|
|
name: "{{ postgresql_daemon }}"
|
|
state: started
|
|
enabled: yes
|
|
|
|
# Configure PostgreSQL.
|
|
- include: databases.yml
|
|
- include: users.yml
|