mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-16 13:19:11 -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
|
@ -93,7 +93,6 @@ options:
|
|||
description:
|
||||
- Host running PostgreSQL where you want to execute the actions.
|
||||
type: str
|
||||
default: localhost
|
||||
session_role:
|
||||
version_added: '2.8'
|
||||
description:
|
||||
|
@ -267,16 +266,12 @@ 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"]),
|
||||
lang=dict(type="str", required=True, aliases=["name"]),
|
||||
state=dict(type="str", default="present", choices=["absent", "present"]),
|
||||
trust=dict(type="bool", default="no"),
|
||||
force_trust=dict(type="bool", default="no"),
|
||||
cascade=dict(type="bool", default="no"),
|
||||
fail_on_drop=dict(type="bool", default="yes"),
|
||||
ssl_mode=dict(default='prefer', choices=[
|
||||
'allow', 'disable', 'prefer', 'require', 'verify-ca', 'verify-full']),
|
||||
ca_cert=dict(default=None, aliases=["ssl_rootcert"]),
|
||||
session_role=dict(type="str"),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue