mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-29 13:51:28 -07:00
postgresql_user: fix doc formatting, added return value, aliases, misc code changes (#54768)
* postgresql_user: refactoring * postgresql_user: removed line from ignore.txt * postgresql_user: removed lines from ignore.txt * postgresql_user: removed lines from ignore.txt, fixes * postgresql_user: removed lines from ignore.txt, fixes * postgresql_user: removed lines from ignore.txt, fixes
This commit is contained in:
parent
d16452bc8f
commit
3eff72e886
6 changed files with 195 additions and 160 deletions
|
@ -24,6 +24,8 @@ options:
|
|||
- Name of the extension to add or remove.
|
||||
required: true
|
||||
type: str
|
||||
aliases:
|
||||
- ext
|
||||
db:
|
||||
description:
|
||||
- Name of the database to add or remove the extension to/from.
|
||||
|
@ -40,6 +42,7 @@ options:
|
|||
description:
|
||||
- The username used to authenticate with.
|
||||
type: str
|
||||
default: postgres
|
||||
login_password:
|
||||
description:
|
||||
- The password used to authenticate with.
|
||||
|
@ -48,7 +51,6 @@ options:
|
|||
description:
|
||||
- Host running the database.
|
||||
type: str
|
||||
default: localhost
|
||||
login_unix_socket:
|
||||
description:
|
||||
- Path to a Unix domain socket for local connections.
|
||||
|
@ -70,7 +72,7 @@ options:
|
|||
- 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: path
|
||||
type: str
|
||||
version_added: '2.8'
|
||||
aliases: [ ssl_rootcert ]
|
||||
port:
|
||||
|
@ -78,6 +80,8 @@ options:
|
|||
- Database port to connect to.
|
||||
default: 5432
|
||||
type: int
|
||||
aliases:
|
||||
- login_port
|
||||
session_role:
|
||||
description:
|
||||
- Switch to session_role after connecting.
|
||||
|
@ -219,14 +223,10 @@ def main():
|
|||
argument_spec = postgres_common_argument_spec()
|
||||
argument_spec.update(
|
||||
db=dict(type="str", required=True, aliases=["login_db"]),
|
||||
port=dict(type="int", default=5432, aliases=["login_port"]),
|
||||
ext=dict(type="str", required=True, aliases=['name']),
|
||||
ext=dict(type="str", required=True, aliases=["name"]),
|
||||
schema=dict(type="str"),
|
||||
state=dict(type="str", default="present", choices=["absent", "present"]),
|
||||
cascade=dict(type='bool', default=False),
|
||||
ssl_mode=dict(type='str', default='prefer', choices=[
|
||||
'disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full']),
|
||||
ca_cert=dict(type="path", default=None, aliases=['ssl_rootcert']),
|
||||
cascade=dict(type="bool", default=False),
|
||||
session_role=dict(type="str"),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue