Install PostgreSQL clients from the upstream distribution.
If you wish to use your distributions packages do not use this role.
Required:
postgresql_version: The PostgreSQL major version, e.g.14,15,16,17,18
Optional:
postgresql_package_version: The PostgreSQL full version, ignored on Ubuntu, e.g.16.11
# Simple example relying on the default Postgres PUBLIC privileges
# which allow access to all users
- hosts: localhost
roles:
- role: ome.postgresql_client
postgresql_version: "16"