From 8c6af73218dc61245e41fb12f0d42508b569c6be Mon Sep 17 00:00:00 2001 From: Veaceslav Mindru Date: Thu, 5 May 2016 11:25:40 +0200 Subject: [PATCH] add vlidate_certs option for unarchive module (#2635) --- lib/ansible/modules/files/unarchive.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ansible/modules/files/unarchive.py b/lib/ansible/modules/files/unarchive.py index d9e8aa9cce0..5a972d18675 100644 --- a/lib/ansible/modules/files/unarchive.py +++ b/lib/ansible/modules/files/unarchive.py @@ -79,6 +79,15 @@ options: default: required: false version_added: "2.1" + validate_certs: + description: + - This only applies if using a https url as the source of the file. + - This should only set to C(no) used on personally controlled sites using self-signed cer + - Prior to 2.2 the code worked as if this was set to C(yes). + required: false + default: "yes" + choices: ["yes", "no"] + version_added: "2.2" author: "Dag Wieers (@dagwieers)" todo: - re-implement tar support using native tarfile module @@ -652,6 +661,7 @@ def main(): keep_newer = dict(required=False, default=False, type='bool'), exclude = dict(requited=False, default=[], type='list'), extra_opts = dict(required=False, default=[], type='list'), + validate_certs = dict(required=False, default=True, type='bool'), ), add_file_common_args = True, # supports_check_mode = True,