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:
Adam Miller 2018-01-11 20:39:07 -08:00 committed by ansibot
parent 85f300e02b
commit d860e13ae1

View file

@ -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
)