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.11
,12
,13
,14
,15
,16
Optional:
postgresql_package_version
: The PostgreSQL full version, ignored on Ubuntu, e.g.12.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: "12"