postgresql_db \- Add or remove PostgreSQL databases from a remote host.
."------DESCRIPTION
.SHDESCRIPTION
.PP
Add or remove PostgreSQL databases from a remote host.
."------OPTIONS
."
."
.SHOPTIONS
.IPstate
The database state
.IRChoices:
present,absent. (default: present)
.IPname
name of the database to add or remove(required)
.IPlogin_password
The password used to authenticate with
.IPowner
Name of the role to set as owner of the database
.IPlogin_user
The username used to authenticate with
.IPlogin_host
Host running the database (default: localhost)."
."
."------NOTES
.SHNOTES
.PP
The default authentication assumes that you are either logging in as or sudo'ing to the postgres account on the host.
.PP
This module uses psycopg2, a Python PostgreSQL database adapter. You must ensure that psycopg2 is installed on the host before using this module. If the remote host is the PostgreSQL server (which is the default case), then PostgreSQL must also be installed on the remote host. For Ubuntu-based systems, install the postgresql, libpq-dev, and python-psycopg2 packages on the remote host before using this module.