mount: restore fstab file if umount fails (#742) (#787)

* mount: restore fstab file if umount fails

* Refactored code

Fixes: #605



* Make CI green



---------

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Hideki Saito
2026-08-26 11:59:31 +09:00
committed by GitHub
co-authored by Abhijeet Kasurde
parent 3db746aed3
commit 7dfac5e719
2 changed files with 65 additions and 59 deletions
@@ -0,0 +1,3 @@
---
bugfixes:
- mount - restore fstab if umount fails (https://github.com/ansible-collections/ansible.posix/issues/605).