postgresql/tasks/main.yml

27 lines
516 B
YAML
Raw Normal View History

---
# 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
2016-09-29 17:04:34 +00:00
- include: initialize.yml
- include: configure.yml
2016-09-29 17:04:34 +00:00
- name: Ensure PostgreSQL is started and enabled on boot.
service:
name: "{{ postgresql_daemon }}"
state: started
enabled: yes
# Configure PostgreSQL.
- include: users.yml
- include: databases.yml