xoxys.postgres/vars/main.yml
Robert Kaussow afc1629696
All checks were successful
continuous-integration/drone/push Build is passing
add variable postgres_base_dir
2019-03-20 09:26:18 +01:00

13 lines
715 B
YAML

---
__postgres_version: "{{ postgres_version | regex_replace('\\.') }}"
__postgres_packagename: "postgresql{{ __postgres_version }}"
__postgres_daemon: "postgresql-{{ __postgres_version }}"
__postgres_service_file: "/usr/lib/systemd/system/{{ __postgres_daemon }}.service"
__postgres_packages:
- "{{ __postgres_packagename }}"
- "{{ __postgres_packagename }}-server"
__postgres_data_dir: "{{ postgres_base_dir | default('/var/lib/pgsql/' + __postgres_version) }}/data"
__postgres_config_path: "{{ __postgres_data_dir }}"
__postgres_tls_key_path: "{{ __postgres_data_dir }}/tls/key/{{ postgres_tls_key_filename }}"
__postgres_tls_cert_path: "{{ __postgres_data_dir }}/tls/certs/{{ postgres_tls_cert_filename }}"