-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_postgresql.yml
44 lines (39 loc) · 1.05 KB
/
config_postgresql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- name: config_pgcluster.yml | Configuration PostgreSQL
hosts: hosts_postgresql
become: true
become_method: sudo
gather_facts: true
tags: always
any_errors_fatal: true
environment: "{{ proxy_env | default({}) }}"
pre_tasks:
- name: Include main variables
ansible.builtin.include_vars: "vars/main.yml"
- name: Include system variables
ansible.builtin.include_vars: "vars/system.yml"
roles:
- role: pre-checks
vars:
minimal_ansible_version: 2.11.0
timescale_minimal_pg_version: 12 # if enable_timescale is defined
- role: hostname
- role: resolv-conf
- role: etc-hosts
- role: timezone
- role: add-repo
- role: packages
- role: sudo
- role: sysctl
- role: pam-limits
- role: locales
- role: ntp
- role: pgpass
- role: config-postgresql
# - role: pgbouncer/config
# when: pgbouncer_install | bool
- role: postgresql-users
- role: postgresql-databases
- role: postgresql-schemas
- role: postgresql-extensions
- role: deploy-finish