1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
patchback[bot] c4e93b0b5f
filesystem: fix 355 state absent (#1149) (#1184)
* 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>
2020-10-27 05:47:47 +01:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:18:40 +02:00
349-pacman_improve_group_expansion_speed.yml Improve group expansion speed: query list of pacman groups once (#349) (#349) (#1060) 2020-10-09 13:25:34 +00:00
409-datadog-monitor-include-tags.yaml Add include_tags to datadog_monitor (#409) (#1158) 2020-10-23 07:48:41 +02:00
886-postgresql_query_add_ret_vals.yml postgresql_query: add query_all_results ret value (#886) (#1131) 2020-10-20 10:37:40 +03:00
968-gitlab_variables-pagination.yml Gitlab variables pagination (#968) (#1063) 2020-10-09 15:30:02 +02:00
993-file-capabilities.yml [capabilities] fix for a newer versions of libcap (#1061) (#1110) 2020-10-16 21:23:43 +02:00
1024-vault-skip-verify-support.yml Respect VAULT_SKIP_VERIFY envionment variable setting in hashi_vault lookup plugin (#1024) (#1062) 2020-10-09 15:30:11 +02:00
1028-proxmox-kvm-linked-clone.yml proxmox_kvm: allow setting format to null (None) (#1028) (#1071) 2020-10-10 12:36:19 +02:00
1036-redis-cache-keyset-name.yaml cache/redis: make keyset keyname configurable (#1036) (#1074) 2020-10-11 20:05:17 +02:00
1048-postgresql_privs_add_procedure_type.yml postgresql_privs: add procedure type support (#1048) (#1056) 2020-10-08 09:03:33 +03:00
1055-redis-cache-sentinel.yaml cache/redis: feature redis sentinel (#1055) (#1130) 2020-10-20 10:00:16 +02:00
1059-postgresql_privs_fix_failings_when_using_roles_with_hyphen.yml postgresql_privs: fix module fails when passing roles containing hyphens (#1059) (#1073) 2020-10-11 15:37:52 +03:00
1078-postgresql_ext_fix_version_selection_when_version_is_latest.yml postgresql_ext: sort list of available versions (#1078) (#1084) 2020-10-13 14:53:17 +03:00
1079-redis-use-regexp-to-check-if-the-value-matches-expected-form.yaml redis: use regexp to check if the value matches expected form (#1079) (#1129) 2020-10-20 07:31:20 +02:00
1081-solaris_zone-python3.yml solaris_zone: fix zone configuration with python3 (#1082) (#1096) 2020-10-15 09:52:14 +02:00
1091-postgresql_info_add_in_recovery_ret_val.yml postgresql_info: add in_recovery return value to show if a service in recovery mode or not (#1091) (#1093) 2020-10-14 14:59:21 +03:00
1099-postgresql_ext_fix_failing_when_version_cannot_be_compared.yml postgresql_ext: fix module's failing when available ext versions contain a pure string (#1099) (#1104) 2020-10-16 12:15:54 +03:00
1101-slack-ts-fix.yaml move conversion of data to json in slack API handling (#1101) (#1120) 2020-10-19 11:33:03 +03:00
1107-monit-fix-status-check.yml monit: fix module detection of monitored process state (#1107) (#1163) 2020-10-23 14:01:01 +02:00
1118-docker_login-config-store.yml docker_login: fix internal config file storage to handle credentials for more than one registry (#1118) (#1145) 2020-10-21 08:39:57 +02:00
1124-pg_hba-dictkey_bugfix.yaml Fix changelog fragment (#1152) (#1153) 2020-10-22 10:44:07 +03:00
1127-maven_artifact_client_cert.yml Added client_cert and client_key to the maven_artifact module. (#1127) (#1142) 2020-10-20 20:27:23 +02:00
1140-iptables_state-fix-race-condition.yml iptables_state: fix race condition between module and its action plugin (#1140) (#1143) 2020-10-20 22:46:12 +02:00
1149-filesystem-fix-355-state-absent.yml filesystem: fix 355 state absent (#1149) (#1184) 2020-10-27 05:47:47 +01:00
1154-django_manage-docs.yml Fixed django_manage markup in docs (#1154) (#1173) 2020-10-26 08:22:10 +01:00
1169-getbinpkgonly.yaml Add getbinpkgonly (-G) to portage (#1169) (#1182) 2020-10-26 21:08:04 +01:00
1179-composer_require_v2_idempotence_fix.yml Issue #1179: Fix v2 composer require idempotence (#1180) (#1181) 2020-10-26 19:54:18 +01:00
nmcli-refactor.yml nmcli: module refactor (#1113) (#1159) 2020-10-23 07:48:29 +02:00