2023-02-09 21:49:13 +00:00
|
|
|
postgresql_apt_key:
|
|
|
|
- name: org.postgresql.gpg
|
|
|
|
url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
|
|
|
|
keyring: /etc/apt/trusted.gpg.d/org.postgresql.gpg
|
|
|
|
postgresql_apt_repository:
|
|
|
|
- repo: deb http://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main
|
|
|
|
filename: postgresql
|
|
|
|
|
|
|
|
postgresql_deps_packages:
|
|
|
|
- gnupg
|
2023-04-18 21:10:38 +00:00
|
|
|
- python3-psycopg2=*pgdg{{ ansible_distribution_version }}0+1
|
2023-02-09 21:49:13 +00:00
|
|
|
|
|
|
|
postgresql_package_name: "postgresql-{{ postgresql_major_version }}"
|
|
|
|
postgresql_package: "{{ postgresql_package_name }}={{ postgresql_version }}-{{ postgresql_version_build }}"
|
2023-04-18 21:10:38 +00:00
|
|
|
postgresql_version_build: "1.pgdg{{ ansible_distribution_version}}0+1"
|
2023-02-09 21:49:13 +00:00
|
|
|
postgresql_config_dir: "/etc/postgresql"
|
2023-02-21 13:14:02 +00:00
|
|
|
postgresql_home_dir: "/var/lib/postgresql"
|
|
|
|
postgresql_data_dir: "{{ postgresql_home_dir }}/{{ postgresql_major_version }}/{{ postgresql_cluster_name }}"
|
2023-02-09 21:49:13 +00:00
|
|
|
postgresql_ssl_path: "{{ postgresql_config_dir }}/{{ postgresql_major_version }}/{{ postgresql_cluster_name }}"
|
|
|
|
postgresql_package_name_regex: "{{ postgresql_package_name }}-{{ postgresql_version }}-{{ postgresql_version_build }}"
|
|
|
|
postgresql_cluster_name: "main"
|
|
|
|
postgresql_ssl_update_ca_command: "update-ca-certificates --fresh"
|
|
|
|
postgresql_ssl_ca_trust_dir: "/usr/local/share/ca-certificates"
|
|
|
|
postgresql_unit_name: "postgresql@{{ postgresql_major_version}}-{{ postgresql_cluster_name }}"
|