Add umount for non RHEL systems

This commit is contained in:
Sandwich 2024-10-31 14:23:55 +01:00
parent d97f0cfff8
commit cb3f36a040
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,10 @@
--- ---
- name: Unmount /mnt recursively
when: os not in ['rhel8', 'rhel9']
ansible.builtin.command: umount -R /mnt
changed_when: result.rc == 0
register: result
- name: Setup Cleanup - name: Setup Cleanup
when: hypervisor == "proxmox" when: hypervisor == "proxmox"
delegate_to: localhost delegate_to: localhost