---
- name: Install Postgresql
  hosts: vm-zabbix-db
  roles:
    - postgresql
  vars:
    postgresql_enablerepo: "pgdg18"
    # "https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
    postgresql_version: "18"
    timescaledb_enabled: true
    postgresql_databases: []
#     - name: exampledb # required; the rest are optional
#       lc_collate: # defaults to 'en_US.UTF-8'
#       lc_ctype: # defaults to 'en_US.UTF-8'
#       encoding: # defaults to 'UTF-8'
#       template: # defaults to 'template0'
#       login_host: # defaults to 'localhost'
#       login_password: # defaults to not set
#       login_user: # defaults to '{{ postgresql_user }}'
#       login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
#       port: # defaults to not set
#       owner: # defaults to postgresql_user
#       state: # defaults to 'present'
    postgresql_users: []
#     - name: jdoe #required; the rest are optional
#       password: # defaults to not set
#       encrypted: # defaults to not set
#       role_attr_flags: # defaults to not set
#       db: # defaults to not set
#       login_host: # defaults to 'localhost'
#       login_password: # defaults to not set
#       login_user: # defaults to '{{ postgresql_user }}'
#       login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
#       port: # defaults to not set
#       state: # defaults to 'present'
