databases/roles/postgresql/defaults/main/main.yml

27 lines
753 B
YAML

---
postgresql_user: postgresql
postgresql_version: >-2
{{ postgresql_version[postgres_major_version | string] }}
postgresql_major_version: 16
postgresql_versions:
"17": "17.2"
"16": "16.6"
"15": "15.10"
"14": "14.15"
postgresql_config_path: >-2
/etc/postgresql/{{ postgresql_major_version }}
postgresql_data_path: >-2
/var/lib/postgresql/{{ postgresql_major_version }}
postgresql_pg_ident_conf_file: >-2
{{ postgresql_data_path }}/pg_ident.conf
postgresql_pg_hba_conf_file: >-2
{{ postgresql_data_path }}/pg_hba.conf
postgresql_admin_role: "{{ postgresql_user }}"
postgresql_admin_role_contype: local
postgresql_admin_role_method: peer
postgresql_superuser_password: ~
postgresql_state: present
postgresql_deployment_method: docker