|
|
|
@ -38,19 +38,26 @@ options:
|
|
|
|
|
- Name of the schema to add the extension to.
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
type: str
|
|
|
|
|
login_user:
|
|
|
|
|
session_role:
|
|
|
|
|
description:
|
|
|
|
|
- The username used to authenticate with.
|
|
|
|
|
- Switch to session_role after connecting.
|
|
|
|
|
- The specified session_role must be a role that the current login_user is a member of.
|
|
|
|
|
- Permissions checking for SQL commands is carried out as though the session_role were the one that had logged in originally.
|
|
|
|
|
type: str
|
|
|
|
|
default: postgres
|
|
|
|
|
login_password:
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
state:
|
|
|
|
|
description:
|
|
|
|
|
- The password used to authenticate with.
|
|
|
|
|
- The database extension state.
|
|
|
|
|
default: present
|
|
|
|
|
choices: [ absent, present ]
|
|
|
|
|
type: str
|
|
|
|
|
login_host:
|
|
|
|
|
cascade:
|
|
|
|
|
description:
|
|
|
|
|
- Host running the database.
|
|
|
|
|
type: str
|
|
|
|
|
- Automatically install/remove any extensions that this extension depends on
|
|
|
|
|
that are not already installed/removed (supported since PostgreSQL 9.6).
|
|
|
|
|
type: bool
|
|
|
|
|
default: no
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
login_unix_socket:
|
|
|
|
|
description:
|
|
|
|
|
- Path to a Unix domain socket for local connections.
|
|
|
|
@ -58,49 +65,19 @@ options:
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
ssl_mode:
|
|
|
|
|
description:
|
|
|
|
|
- Determines whether or with what priority a secure SSL TCP/IP connection
|
|
|
|
|
will be negotiated with the server.
|
|
|
|
|
- See U(https://www.postgresql.org/docs/current/static/libpq-ssl.html) for
|
|
|
|
|
more information on the modes.
|
|
|
|
|
- Determines whether or with what priority a secure SSL TCP/IP connection will be negotiated with the server.
|
|
|
|
|
- See https://www.postgresql.org/docs/current/static/libpq-ssl.html for more information on the modes.
|
|
|
|
|
- Default of C(prefer) matches libpq default.
|
|
|
|
|
type: str
|
|
|
|
|
default: prefer
|
|
|
|
|
choices: [ allow, disable, prefer, require, verify-ca, verify-full ]
|
|
|
|
|
type: str
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
ca_cert:
|
|
|
|
|
description:
|
|
|
|
|
- Specifies the name of a file containing SSL certificate authority (CA)
|
|
|
|
|
certificate(s). If the file exists, the server's certificate will be
|
|
|
|
|
verified to be signed by one of these authorities.
|
|
|
|
|
- Specifies the name of a file containing SSL certificate authority (CA) certificate(s).
|
|
|
|
|
- If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
|
|
|
|
type: str
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
aliases: [ ssl_rootcert ]
|
|
|
|
|
port:
|
|
|
|
|
description:
|
|
|
|
|
- Database port to connect to.
|
|
|
|
|
default: 5432
|
|
|
|
|
type: int
|
|
|
|
|
aliases:
|
|
|
|
|
- login_port
|
|
|
|
|
session_role:
|
|
|
|
|
description:
|
|
|
|
|
- Switch to session_role after connecting.
|
|
|
|
|
- The specified session_role must be a role that the current login_user is a member of.
|
|
|
|
|
- Permissions checking for SQL commands is carried out as though the session_role were the one that had logged in originally.
|
|
|
|
|
type: str
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
state:
|
|
|
|
|
description:
|
|
|
|
|
- The database extension state.
|
|
|
|
|
default: present
|
|
|
|
|
choices: [ absent, present ]
|
|
|
|
|
type: str
|
|
|
|
|
cascade:
|
|
|
|
|
description:
|
|
|
|
|
- Automatically install/remove any extensions that this extension depends on
|
|
|
|
|
that are not already installed/removed (supported since PostgreSQL 9.6).
|
|
|
|
|
type: bool
|
|
|
|
|
default: no
|
|
|
|
|
version_added: '2.8'
|
|
|
|
|
notes:
|
|
|
|
|
- The default authentication assumes that you are either logging in as
|
|
|
|
@ -115,6 +92,7 @@ requirements: [ psycopg2 ]
|
|
|
|
|
author:
|
|
|
|
|
- Daniel Schep (@dschep)
|
|
|
|
|
- Thomas O'Donnell (@andytom)
|
|
|
|
|
extends_documentation_fragment: postgres
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
EXAMPLES = r'''
|
|
|
|
|