add vlidate_certs option for unarchive module (#2635)

This commit is contained in:
Veaceslav Mindru 2016-05-05 11:25:40 +02:00 committed by Matt Clay
parent ca8bf6ab4c
commit 8c6af73218

View file

@ -79,6 +79,15 @@ options:
default: default:
required: false required: false
version_added: "2.1" 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)" author: "Dag Wieers (@dagwieers)"
todo: todo:
- re-implement tar support using native tarfile module - re-implement tar support using native tarfile module
@ -652,6 +661,7 @@ def main():
keep_newer = dict(required=False, default=False, type='bool'), keep_newer = dict(required=False, default=False, type='bool'),
exclude = dict(requited=False, default=[], type='list'), exclude = dict(requited=False, default=[], type='list'),
extra_opts = dict(required=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, add_file_common_args = True,
# supports_check_mode = True, # supports_check_mode = True,