diff options
author | Lee Garrett <lgarrett@rocketjump.eu> | 2022-03-29 17:09:09 +0200 |
---|---|---|
committer | Lee Garrett <lgarrett@rocketjump.eu> | 2022-06-13 23:10:52 +0200 |
commit | c854267a3b7e70668beced393c6b8f2f5f64ed58 (patch) | |
tree | 155f8e898e97770ec1d7e6df8addc5923e52c6f7 /lib/ansible/modules | |
parent | 39552c97f0bcb60e41b82424bed22eb25e790c9a (diff) | |
download | debian-ansible-core-c854267a3b7e70668beced393c6b8f2f5f64ed58.zip |
New upstream version 2.12.4
Diffstat (limited to 'lib/ansible/modules')
-rw-r--r-- | lib/ansible/modules/unarchive.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/ansible/modules/unarchive.py b/lib/ansible/modules/unarchive.py index 0b265943..3eba055a 100644 --- a/lib/ansible/modules/unarchive.py +++ b/lib/ansible/modules/unarchive.py @@ -53,7 +53,7 @@ options: description: - Size of the volatile memory buffer that is used for extracting files from the archive in bytes. type: int - default: 64 KiB + default: 65536 version_added: "2.12" list_files: description: @@ -305,7 +305,7 @@ class ZipArchive(object): self.file_args = file_args self.opts = module.params['extra_opts'] self.module = module - self.io_buffer_size = module.params.get("io_buffer_size", 64 * 1024) + self.io_buffer_size = module.params["io_buffer_size"] self.excludes = module.params['exclude'] self.includes = [] self.include_files = self.module.params['include'] @@ -977,6 +977,13 @@ def main(): include=dict(type='list', elements='str', default=[]), extra_opts=dict(type='list', elements='str', default=[]), validate_certs=dict(type='bool', default=True), + io_buffer_size=dict(type='int', default=64 * 1024), + + # Options that are for the action plugin, but ignored by the module itself. + # We have them here so that the sanity tests pass without ignores, which + # reduces the likelihood of further bugs added. + copy=dict(type='bool', default=True), + decrypt=dict(type='bool', default=True), ), add_file_common_args=True, # check-mode only works for zip files, we cover that later |