dont use sudo for umount

This commit is contained in:
Sandwich 2024-10-31 15:35:22 +01:00
parent cb3f36a040
commit 406db38296

View File

@ -1,7 +1,8 @@
--- ---
- name: Unmount /mnt recursively - name: Unmount /mnt recursively
when: os not in ['rhel8', 'rhel9'] when: os not in ['rhel8', 'rhel9']
ansible.builtin.command: umount -R /mnt become: false
ansible.builtin.command: umount -l /mnt
changed_when: result.rc == 0 changed_when: result.rc == 0
register: result register: result