Add postgresql role

This commit is contained in:
Tobias Reisinger 2024-10-31 02:25:02 +01:00
parent 4f97b66c3d
commit 56885d70b6
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 152 additions and 4 deletions
playbooks/roles/postgresql/vars

View file

@ -0,0 +1,20 @@
postgresql_version: 16
postgresql_repo_key_dir: /usr/share/postgresql-common/pgdg
postgresql_repo_key_file: "{{ (postgresql_repo_key_dir, 'apt.postgresql.org.asc') | path_join }}"
postgresql_conf_dir: /etc/postgresql/{{ postgresql_version }}/main
postgresql_conf_pg_hba: "{{ (postgresql_conf_dir, 'pg_hba.conf') | path_join }}"
postgresql_data_dir: /var/lib/postgresql/{{ postgresql_version }}/main
postgresql_bin_dir: /usr/lib/postgresql/{{ postgresql_version }}/bin
postgresql_bin_initdb: "{{ (postgresql_bin_dir, 'initdb') | path_join }}"
postgresql_set_vars:
listen_addresses: '*'
ssl: true
ssl_cert_file: /etc/postgresql/cert.crt
ssl_key_file: /etc/postgresql/cert.key
log_timezone: '{{ timezone }}'
TimeZone: '{{ timezone }}'