mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Postgresql privs reformat (#54717)
* postgresql_privs: fix doc format, pgutils * postgresql_privs: added pgutils, ret value * postgresql_privs: fix test * postgresql_privs: fixes * postgresql_privs: fixes * postgresql_privs: fixed CI
This commit is contained in:
parent
7ea01da38f
commit
40f65a54ec
8 changed files with 243 additions and 173 deletions
|
@ -25,11 +25,15 @@ options:
|
|||
description:
|
||||
- Name of database to connect.
|
||||
type: str
|
||||
aliases:
|
||||
- login_db
|
||||
port:
|
||||
description:
|
||||
- Database port to connect.
|
||||
type: int
|
||||
default: 5432
|
||||
aliases:
|
||||
- login_port
|
||||
login_user:
|
||||
description:
|
||||
- User (role) used to authenticate with PostgreSQL.
|
||||
|
@ -171,9 +175,7 @@ class PgPing(object):
|
|||
def main():
|
||||
argument_spec = postgres_common_argument_spec()
|
||||
argument_spec.update(
|
||||
db=dict(type='str'),
|
||||
ssl_mode=dict(type='str', default='prefer', choices=['allow', 'disable', 'prefer', 'require', 'verify-ca', 'verify-full']),
|
||||
ca_cert=dict(type='str', aliases=['ssl_rootcert']),
|
||||
db=dict(type='str', aliases=['login_db']),
|
||||
)
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue