postgresql_ext – Add or remove PostgreSQL extensions from a database.¶
New in version 1.9.
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
db
-
/ required
|
name of the database to add or remove the extension to/from
|
|
login_host
-
|
Default: "localhost"
|
Host running the database
|
login_password
-
|
The password used to authenticate with
|
|
login_user
-
|
The username used to authenticate with
|
|
name
-
/ required
|
name of the extension to add or remove
|
|
port
-
|
Default: 5432
|
Database port to connect to.
|
state
-
|
|
The database extension state
|
Notes¶
Note
- The default authentication assumes that you are either logging in as or sudo’ing to the
postgres
account on the host. - 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
, andpython-psycopg2
packages on the remote host before using this module.
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Daniel Schep (@dschep)
Hint
If you notice any issues in this documentation you can edit this document to improve it.