mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
c4e93b0b5f
* 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
|
||
---|---|---|
.. | ||
.keep | ||
349-pacman_improve_group_expansion_speed.yml | ||
409-datadog-monitor-include-tags.yaml | ||
886-postgresql_query_add_ret_vals.yml | ||
968-gitlab_variables-pagination.yml | ||
993-file-capabilities.yml | ||
1024-vault-skip-verify-support.yml | ||
1028-proxmox-kvm-linked-clone.yml | ||
1036-redis-cache-keyset-name.yaml | ||
1048-postgresql_privs_add_procedure_type.yml | ||
1055-redis-cache-sentinel.yaml | ||
1059-postgresql_privs_fix_failings_when_using_roles_with_hyphen.yml | ||
1078-postgresql_ext_fix_version_selection_when_version_is_latest.yml | ||
1079-redis-use-regexp-to-check-if-the-value-matches-expected-form.yaml | ||
1081-solaris_zone-python3.yml | ||
1091-postgresql_info_add_in_recovery_ret_val.yml | ||
1099-postgresql_ext_fix_failing_when_version_cannot_be_compared.yml | ||
1101-slack-ts-fix.yaml | ||
1107-monit-fix-status-check.yml | ||
1118-docker_login-config-store.yml | ||
1124-pg_hba-dictkey_bugfix.yaml | ||
1127-maven_artifact_client_cert.yml | ||
1140-iptables_state-fix-race-condition.yml | ||
1149-filesystem-fix-355-state-absent.yml | ||
1154-django_manage-docs.yml | ||
1169-getbinpkgonly.yaml | ||
1179-composer_require_v2_idempotence_fix.yml | ||
nmcli-refactor.yml |