community.general/plugins
Stanislav Shamilov 41b6a281e1
Add decompress module ()
* 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>
2024-12-02 20:16:00 +01:00
..
action Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks () 2024-08-07 15:18:58 +02:00
become Type options of become plugins () 2024-07-21 21:02:49 +02:00
cache use dict comprehension in plugins, part 3 () 2024-09-08 14:22:37 +02:00
callback Prepare 10.0.0 release () 2024-10-07 23:37:44 +02:00
connection Type options of connection plugins () 2024-07-21 21:04:53 +02:00
doc_fragments Update docs with references to man pages () 2024-10-07 22:00:26 +02:00
filter filters/dict: document the correct return value () 2024-11-18 20:42:14 +01:00
inventory proxmox inventory: fix urllib3 InsecureRequestWarnings not suppressing when a token is used () 2024-11-04 19:02:34 +01:00
lookup Update docs for github_app_access_token.py () 2024-11-20 19:07:06 +01:00
module_utils pipx/pipx_info: add return value version () 2024-11-24 22:10:19 +01:00
modules Add decompress module () 2024-12-02 20:16:00 +01:00
plugin_utils Use dict comprehension in plugins () 2024-09-01 20:22:53 +02:00
test New Plugins () 2024-07-13 13:32:36 +02:00