agaric-coop/box/provisioning/roles/geerlingguy.postgresql/tasks/main.yml

27 lines
516 B
YAML
Raw Permalink 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
- 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