From d860e13ae12e4ca3d656acfb503d245bb7fb0cf6 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Thu, 11 Jan 2018 20:39:07 -0800 Subject: [PATCH] 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 --- lib/ansible/modules/web_infrastructure/jira.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ansible/modules/web_infrastructure/jira.py b/lib/ansible/modules/web_infrastructure/jira.py index 35bddcf9d9d..e37d6c08e2b 100644 --- a/lib/ansible/modules/web_infrastructure/jira.py +++ b/lib/ansible/modules/web_infrastructure/jira.py @@ -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 )