New module: dpkg_divert (#417)

* feature: module dpkg_divert + tests

* try to skip non-deb linux distrib

* use collection namespace in EXAMPLES

* skip unsupported OS/distrib in tasks instead

* tests: remove unskipped distribs

* apply changes suggested by Andersson007

* Remove ANSIBLE_METADATA (no more needed).
* Normalize docstrings (capitalize descriptions, fix styling, use yes/no
  booleans).

* fix descriptions

* update DOCUMENTATION

* Drop field 'version_added' (no more needed).
* Add a note about check_mode support.

* use list comprehension

* support diff mode

* Move 'before'/'after' dicts into 'diff' dictionary.
* Set 'diversion' as the actual state (or the state that would be
  reached, when in check mode).
* Always return 'diversion' on handled exits (exit_json & fail_json).

* enable 'diff' mode in tests, add missing 'become'
This commit is contained in:
quidame 2020-06-10 18:01:16 +00:00 committed by GitHub
commit 8635cd84d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1085 additions and 0 deletions

View file

@ -0,0 +1 @@
./system/dpkg_divert.py