dont use sudo for umount
This commit is contained in:
parent
cb3f36a040
commit
406db38296
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user