From ec55701f009dc80c3e156ac48662ff6830e26dd2 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