The postgres_cluster state module is used to manage PostgreSQL clusters. Clusters can be set as either absent or present
create cluster 9.3 main: postgres_cluster.present: - name: 'main' - version: '9.3'
Ensure that the named cluster is absent
The name of the cluster to remove
present(version, name, port=None, encoding=None, locale=None, datadir=None)¶
Ensure that the named cluster is present with the specified properties. For more information about all of these options see man pg_createcluster(1)
Where the cluster is stored