From 8a37a2440ecbf8407b28b19db2d3c987a367051b Mon Sep 17 00:00:00 2001 From: Andrey Klychkov Date: Mon, 7 Oct 2019 11:44:57 +0300 Subject: [PATCH] postgresql: add elements for list params to the module's documentation (#63186) --- lib/ansible/modules/database/postgresql/postgresql_copy.py | 1 + lib/ansible/modules/database/postgresql/postgresql_idx.py | 2 ++ lib/ansible/modules/database/postgresql/postgresql_info.py | 1 + .../modules/database/postgresql/postgresql_membership.py | 2 ++ lib/ansible/modules/database/postgresql/postgresql_owner.py | 1 + .../modules/database/postgresql/postgresql_publication.py | 1 + lib/ansible/modules/database/postgresql/postgresql_table.py | 2 ++ lib/ansible/modules/database/postgresql/postgresql_user.py | 1 + 8 files changed, 11 insertions(+) diff --git a/lib/ansible/modules/database/postgresql/postgresql_copy.py b/lib/ansible/modules/database/postgresql/postgresql_copy.py index 845da0a5761..315920f8e11 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_copy.py +++ b/lib/ansible/modules/database/postgresql/postgresql_copy.py @@ -51,6 +51,7 @@ options: description: - List of column names for the src/dst table to COPY FROM/TO. type: list + elements: str aliases: [ column ] program: description: diff --git a/lib/ansible/modules/database/postgresql/postgresql_idx.py b/lib/ansible/modules/database/postgresql/postgresql_idx.py index 816ff17b475..e4b9c5390ff 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_idx.py +++ b/lib/ansible/modules/database/postgresql/postgresql_idx.py @@ -65,6 +65,7 @@ options: - List of index columns that need to be covered by index. - Mutually exclusive with I(state=absent). type: list + elements: str aliases: - column cond: @@ -100,6 +101,7 @@ options: - Storage parameters like fillfactor, vacuum_cleanup_index_scale_factor, etc. - Mutually exclusive with I(state=absent). type: list + elements: str cascade: description: - Automatically drop objects that depend on the index, diff --git a/lib/ansible/modules/database/postgresql/postgresql_info.py b/lib/ansible/modules/database/postgresql/postgresql_info.py index f88cffa4ea2..1539cd7f42e 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_info.py +++ b/lib/ansible/modules/database/postgresql/postgresql_info.py @@ -33,6 +33,7 @@ options: - If you pass including and excluding values to the filter, for example, I(filter=!settings,ver), the excluding values will be ignored. type: list + elements: str db: description: - Name of database to connect. diff --git a/lib/ansible/modules/database/postgresql/postgresql_membership.py b/lib/ansible/modules/database/postgresql/postgresql_membership.py index 31a781e0210..b11e8e18cf2 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_membership.py +++ b/lib/ansible/modules/database/postgresql/postgresql_membership.py @@ -32,6 +32,7 @@ options: - The list of groups (roles) that need to be granted to or revoked from I(target_roles). required: yes type: list + elements: str aliases: - group - source_role @@ -41,6 +42,7 @@ options: - The list of target roles (groups will be granted to them). required: yes type: list + elements: str aliases: - target_role - users diff --git a/lib/ansible/modules/database/postgresql/postgresql_owner.py b/lib/ansible/modules/database/postgresql/postgresql_owner.py index 8553b1d2c64..c2767a0df06 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_owner.py +++ b/lib/ansible/modules/database/postgresql/postgresql_owner.py @@ -51,6 +51,7 @@ options: - Cannot reassign ownership of objects that are required by the database system. - Mutually exclusive with C(obj_type). type: list + elements: str fail_on_role: description: - If C(yes), fail when I(reassign_owned_by) role does not exist. diff --git a/lib/ansible/modules/database/postgresql/postgresql_publication.py b/lib/ansible/modules/database/postgresql/postgresql_publication.py index 4d55ad3c333..ae431e41ac3 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_publication.py +++ b/lib/ansible/modules/database/postgresql/postgresql_publication.py @@ -41,6 +41,7 @@ options: nothing will be changed. If you need to add all tables to the publication with the same name, drop existent and create new without passing I(tables). type: list + elements: str state: description: - The publication state. diff --git a/lib/ansible/modules/database/postgresql/postgresql_table.py b/lib/ansible/modules/database/postgresql/postgresql_table.py index c3a25727b8d..75b5d3bb4a9 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_table.py +++ b/lib/ansible/modules/database/postgresql/postgresql_table.py @@ -63,6 +63,7 @@ options: description: - Columns that are needed. type: list + elements: str rename: description: - New table name. Mutually exclusive with I(tablespace), I(owner), @@ -79,6 +80,7 @@ options: - Storage parameters like fillfactor, autovacuum_vacuum_treshold, etc. Mutually exclusive with I(rename) and I(truncate). type: list + elements: str db: description: - Name of database to connect and where the table will be created. diff --git a/lib/ansible/modules/database/postgresql/postgresql_user.py b/lib/ansible/modules/database/postgresql/postgresql_user.py index 2f58ff24541..01b7204cb21 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_user.py +++ b/lib/ansible/modules/database/postgresql/postgresql_user.py @@ -150,6 +150,7 @@ options: description: - The list of groups (roles) that need to be granted to the user. type: list + elements: str version_added: '2.9' notes: - The module creates a user (role) with login privilege by default.