Add postgresql role
This commit is contained in:
parent
4f97b66c3d
commit
56885d70b6
7 changed files with 152 additions and 4 deletions
playbooks/roles/postgresql/vars
20
playbooks/roles/postgresql/vars/main.yml
Normal file
20
playbooks/roles/postgresql/vars/main.yml
Normal 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 }}'
|
Loading…
Add table
Add a link
Reference in a new issue