mirror of
https://gitea.0xace.cc/ansible-galaxy/pgbouncer.git
synced 2025-06-29 03:03:07 +00:00
split variables for RedHat and Debain os family
This commit is contained in:
@ -1,2 +1,8 @@
|
||||
pgbouncer_postgresql_config_dir: "/etc/postgresql"
|
||||
pgbouncer_postgresql_config_cluster_dir: "{{ pgbouncer_postgresql_config_dir }}/{{ pgbouncer_postgresql_major_version }}/{{ pgbouncer_postgresql_cluster_name }}"
|
||||
pgbouncer_postgresql_home_dir: "/var/lib/postgresql"
|
||||
pgbouncer_postgresql_data_dir: "{{ pgbouncer_postgresql_home_dir }}/{{ pgbouncer_postgresql_major_version }}/{{ pgbouncer_postgresql_cluster_name }}"
|
||||
pgbouncer_postgresql_ssl_path: "{{ pgbouncer_postgresql_config_dir }}/{{ pgbouncer_postgresql_major_version }}/{{ pgbouncer_postgresql_cluster_name }}"
|
||||
pgbouncer_postgresql_cluster_name: "main"
|
||||
|
||||
pgbouncer_postgresql_package_name_regex: 'postgresql-.[{{ pgbouncer_postgresql_supported_versions | join(",") }}]'
|
||||
|
@ -1,2 +1,7 @@
|
||||
pgbouncer_postgresql_home_dir: "/var/lib/pgsql"
|
||||
pgbouncer_postgresql_data_dir: "{{ pgbouncer_postgresql_home_dir }}/{{ pgbouncer_postgresql_major_version }}/data"
|
||||
pgbouncer_postgresql_ssl_path: "{{ pgbouncer_postgresql_home_dir }}/{{ pgbouncer_postgresql_major_version }}"
|
||||
pgbouncer_postgresql_config_dir: "{{ pgbouncer_postgresql_data_dir }}"
|
||||
pgbouncer_postgresql_config_cluster_dir: "{{ pgbouncer_postgresql_data_dir }}"
|
||||
|
||||
pgbouncer_postgresql_package_name_regex: 'postgresql.[{{ pgbouncer_postgresql_supported_versions | join(",") }}]-server'
|
||||
|
5
vars/main.yaml
Normal file
5
vars/main.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
postgresql_major_version: "{{ postgresql_version | split('.') | first }}"
|
||||
postgresql_minor_version: "{{ postgresql_version | split('.') | last }}"
|
||||
postgresql_system_locale: "en_US.UTF-8"
|
||||
postgresql_system_language: "{{ postgresql_system_locale }}"
|
||||
postgresql_system_override_dir: "/etc/systemd/system/postgresql-{{ postgresql_major_version }}.service.d"
|
Reference in New Issue
Block a user