mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 23:51:23 -07:00
* add support for filesystem removal (fix #355)
- Add 'state' option, defaults to 'present'.
- When state=absent, ignore other options (even 'dev' if the device
doesn't exist)
* test filesystem state=absent (+ check_mode + idempotency)
* fix doc-required-mismatch
* add changelog fragment
* fix blkid return code
* ext4dev may be deprecated
* base checks on UUID instead
* Update changelogs/fragments/1149-filesystem-fix-355-state-absent.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/system/filesystem.py (version_added)
Co-authored-by: Felix Fontein <felix@fontein.de>
* use array for new run_command() calls; do not wipefs if no fs found
* use dd as a fallback
* do not use bare 'except' (pep8)
* force string type
* use dd anyway (wipefs not supported everywhere, possibly buggy with vfat, etc.)
* do not truncate regular files; update changelog fragment
* doc: update state description and an example; notice check_mode support
* do not wipe mounted fs, fail instead
* back to wipefs implementation
* update test's main conditions
* update changelog fragment
* explicit types
* fail state=absent on freebsd
* remove doc-missing-type exceptions (2.9, 2.10, 2.11)
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit a5ca990857
)
Co-authored-by: quidame <quidame@poivron.org>
This commit is contained in:
parent
08831e193f
commit
c4e93b0b5f
7 changed files with 194 additions and 34 deletions
|
@ -1169,7 +1169,6 @@ plugins/modules/system/dconf.py pylint:blacklisted-name
|
|||
plugins/modules/system/dconf.py validate-modules:doc-missing-type
|
||||
plugins/modules/system/dconf.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/system/filesystem.py pylint:blacklisted-name
|
||||
plugins/modules/system/filesystem.py validate-modules:doc-missing-type
|
||||
plugins/modules/system/gconftool2.py pylint:blacklisted-name
|
||||
plugins/modules/system/gconftool2.py validate-modules:parameter-state-invalid-choice
|
||||
plugins/modules/system/gconftool2.py validate-modules:parameter-type-not-in-doc
|
||||
|
|
|
@ -1169,7 +1169,6 @@ plugins/modules/system/dconf.py pylint:blacklisted-name
|
|||
plugins/modules/system/dconf.py validate-modules:doc-missing-type
|
||||
plugins/modules/system/dconf.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/system/filesystem.py pylint:blacklisted-name
|
||||
plugins/modules/system/filesystem.py validate-modules:doc-missing-type
|
||||
plugins/modules/system/gconftool2.py pylint:blacklisted-name
|
||||
plugins/modules/system/gconftool2.py validate-modules:parameter-state-invalid-choice
|
||||
plugins/modules/system/gconftool2.py validate-modules:parameter-type-not-in-doc
|
||||
|
|
|
@ -921,7 +921,6 @@ plugins/modules/system/dconf.py pylint:blacklisted-name
|
|||
plugins/modules/system/dconf.py validate-modules:doc-missing-type
|
||||
plugins/modules/system/dconf.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/system/filesystem.py pylint:blacklisted-name
|
||||
plugins/modules/system/filesystem.py validate-modules:doc-missing-type
|
||||
plugins/modules/system/gconftool2.py pylint:blacklisted-name
|
||||
plugins/modules/system/gconftool2.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/system/interfaces_file.py pylint:blacklisted-name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue