community.general/plugins
patchback[bot] bbd67b5017
[PR #9175/41b6a281 backport][stable-10] Add decompress module (#9213)
Add decompress module (#9175)

* adds simple implementation of `decompress` module

* adds simple test, fixes src and dest arg types

* minor refactoring

* adds support for common file operations
adds integration test for gz decompressing

* makes tests parametrized to test all supported compression formats

* checks that target file exists

* writes to decompressed file now uses atomic_move

* adds idempotency for decompression

* refactoring, removed classes

* adds support for check mode

* adds check for destination file. If it exists and it is a directory, the module returns error

* refactoring, moves code to a class. Also, simplifies tests (now only tests related to the module core functionality run as parametrized, tests for idempotency and check mode run only for one format)

* adds 'remove' parameter that deletes original compressed file after decompression

* adds documentation

* fixes bug with 'remove' parameter in check mode

* makes dest argument not required. Dest filename now can be produced from the src filename

* adds dest to output

* updates the documentation, adds "RETURN" block

* fixes test

* adds support for python2

* removes some of the test files that can be generated during testing. Adds copyright header to test files

* adds maintainer

* apply minor suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* fixes code review comments (idempotency issue with non existing src, existing dest and remove=true; fixes the issue and adds test)

* refactors the module to use ModuleHelper

* refactors lzma dependency manual check to use 'deps.validate'

* minor fix

* removes registered handlers check

* minor refactoring

* adds aliases

* changes setup for tests

* tests: ignores macos and fixes tests for FreeBSD

* tests: reverts ignore for macos and fixes issue with centos7

* tests: adds liblzma dependency for python2

* tests: adds backports.lzma

* fixes bz2 decompression for python2

* tests: install xz for osx

* tests: install xz for osx (2)

* fixes code review comments

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 41b6a281e1)

Co-authored-by: Stanislav Shamilov <shamilovstas@protonmail.com>
2024-12-02 20:34:01 +01:00
..
action Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8720) 2024-08-07 15:18:58 +02:00
become Type options of become plugins (#8623) 2024-07-21 21:02:49 +02:00
cache use dict comprehension in plugins, part 3 (#8833) 2024-09-08 14:22:37 +02:00
callback Prepare 10.0.0 release (#8921) 2024-10-07 23:37:44 +02:00
connection Type options of connection plugins (#8627) 2024-07-21 21:04:53 +02:00
doc_fragments Update docs with references to man pages (#8983) 2024-10-07 22:00:26 +02:00
filter [PR #9145/dc856ab6 backport][stable-10] filters/dict: document the correct return value (#9151) 2024-11-18 20:58:50 +01:00
inventory proxmox inventory: fix urllib3 InsecureRequestWarnings not suppressing when a token is used (#9099) 2024-11-04 19:02:34 +01:00
lookup [PR #9152/5a971587 backport][stable-10] Update docs for github_app_access_token.py (#9164) 2024-11-20 19:31:35 +01:00
module_utils [PR #9180/a9449ccc backport][stable-10] pipx/pipx_info: add return value version (#9183) 2024-11-25 19:49:25 +01:00
modules [PR #9175/41b6a281 backport][stable-10] Add decompress module (#9213) 2024-12-02 20:34:01 +01:00
plugin_utils Use dict comprehension in plugins (#8814) 2024-09-01 20:22:53 +02:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00