mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 16:23:10 +00:00
Add validate_certs to jira module (#34756)
The jira module uses ansible.module_utils.urls.fetch_url which will attempt to get that value of the validate_certs parameter from the module; if present it will honor it's value, otherwise it defaults to True. This patch adds that parameter to jira so that it can be specified by the user and honored by ansible.module_utils.urls.fetch_url Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
@@ -118,6 +118,13 @@ options:
|
||||
- Set timeout, in seconds, on requests to JIRA API.
|
||||
default: 10
|
||||
|
||||
validate_certs:
|
||||
required: false
|
||||
version_added: 2.5
|
||||
description:
|
||||
- Require valid SSL certificates (set to `false` if you'd like to use self-signed certificates)
|
||||
default: true
|
||||
|
||||
notes:
|
||||
- "Currently this only works with basic-auth."
|
||||
|
||||
@@ -391,6 +398,7 @@ def main():
|
||||
inwardissue=dict(),
|
||||
outwardissue=dict(),
|
||||
timeout=dict(type='float', default=10),
|
||||
validate_certs=dict(default=True, type='bool'),
|
||||
),
|
||||
supports_check_mode=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user