From ff4f9cdb0796d396bd528f7c86cd43d24c2e4cb0 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Wed, 30 Oct 2024 23:48:36 +0100 Subject: [PATCH] umount disks before reboot --- roles/cleanup/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/cleanup/tasks/main.yml b/roles/cleanup/tasks/main.yml index 8a9ea07..8684e01 100644 --- a/roles/cleanup/tasks/main.yml +++ b/roles/cleanup/tasks/main.yml @@ -1,4 +1,9 @@ --- +- name: Unmount /mnt recursively + ansible.builtin.command: umount -l /mnt + changed_when: result.rc == 0 + register: result + - name: Setup Cleanup when: hypervisor == "proxmox" delegate_to: localhost