|
|
@ -73,26 +73,6 @@ options:
|
|
|
|
- Only used when C(state=absent).
|
|
|
|
- Only used when C(state=absent).
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
default: 'no'
|
|
|
|
default: 'no'
|
|
|
|
port:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Database port to connect to.
|
|
|
|
|
|
|
|
default: 5432
|
|
|
|
|
|
|
|
type: int
|
|
|
|
|
|
|
|
aliases:
|
|
|
|
|
|
|
|
- login_port
|
|
|
|
|
|
|
|
login_user:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- User to authenticate with PostgreSQL.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
default: postgres
|
|
|
|
|
|
|
|
login_password:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Password used to authenticate with PostgreSQL (must match C(login_user)).
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
login_host:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Host running PostgreSQL where you want to execute the actions.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
session_role:
|
|
|
|
session_role:
|
|
|
|
version_added: '2.8'
|
|
|
|
version_added: '2.8'
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -108,29 +88,25 @@ options:
|
|
|
|
choices: [ absent, present ]
|
|
|
|
choices: [ absent, present ]
|
|
|
|
login_unix_socket:
|
|
|
|
login_unix_socket:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Path to a Unix domain socket for local connections.
|
|
|
|
- Path to a Unix domain socket for local connections.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
version_added: '2.8'
|
|
|
|
version_added: '2.8'
|
|
|
|
ssl_mode:
|
|
|
|
ssl_mode:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Determines whether or with what priority a secure SSL TCP/IP connection
|
|
|
|
- Determines whether or with what priority a secure SSL TCP/IP connection will be negotiated with the server.
|
|
|
|
will be negotiated with the server.
|
|
|
|
- See https://www.postgresql.org/docs/current/static/libpq-ssl.html for more information on the modes.
|
|
|
|
- See U(https://www.postgresql.org/docs/current/static/libpq-ssl.html) for
|
|
|
|
- Default of C(prefer) matches libpq default.
|
|
|
|
more information on the modes.
|
|
|
|
|
|
|
|
- Default of C(prefer) matches libpq default.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
default: prefer
|
|
|
|
default: prefer
|
|
|
|
choices: [ allow, disable, prefer, require, verify-ca, verify-full ]
|
|
|
|
choices: [ allow, disable, prefer, require, verify-ca, verify-full ]
|
|
|
|
version_added: '2.8'
|
|
|
|
version_added: '2.8'
|
|
|
|
ca_cert:
|
|
|
|
ca_cert:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specifies the name of a file containing SSL certificate authority (CA)
|
|
|
|
- Specifies the name of a file containing SSL certificate authority (CA) certificate(s).
|
|
|
|
certificate(s). If the file exists, the server's certificate will be
|
|
|
|
- If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
|
|
|
verified to be signed by one of these authorities.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
version_added: '2.8'
|
|
|
|
|
|
|
|
aliases: [ ssl_rootcert ]
|
|
|
|
aliases: [ ssl_rootcert ]
|
|
|
|
|
|
|
|
version_added: '2.8'
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- The default authentication assumes that you are either logging in as or
|
|
|
|
- The default authentication assumes that you are either logging in as or
|
|
|
|
sudo'ing to the postgres account on the host.
|
|
|
|
sudo'ing to the postgres account on the host.
|
|
|
@ -145,6 +121,7 @@ requirements: [ psycopg2 ]
|
|
|
|
author:
|
|
|
|
author:
|
|
|
|
- Jens Depuydt (@jensdepuydt)
|
|
|
|
- Jens Depuydt (@jensdepuydt)
|
|
|
|
- Thomas O'Donnell (@andytom)
|
|
|
|
- Thomas O'Donnell (@andytom)
|
|
|
|
|
|
|
|
extends_documentation_fragment: postgres
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = r'''
|
|
|
|
EXAMPLES = r'''
|
|
|
|