galaxyproject / ansible-postgresql

An Ansible role for managing a PostgreSQL server
https://galaxy.ansible.com/galaxyproject/postgresql
122 stars 58 forks source link

custom data directory #36

Open MichaelDBA opened 2 years ago

MichaelDBA commented 2 years ago

The documentation says this: postgresql_pgdata: Only set this if you have changed the $PGDATA directory from the package default. Note this does not configure PostgreSQL to actually use a different directory, you will need to do that yourself, it just allows the role to properly locate the directory. So how would one go about initializing a pg cluster with a custom data directory?