k3s-ansible/roles/reset/tasks/umount_with_childeren.yml
Staf Wagemakers 4058ee42e6 killall containerd-shim-runc-v2 added
umount k3s filesystems added
2020-07-22 18:43:06 +02:00

14 lines
384 B
YAML

---
- name: Get the list of mounted filesystems
shell: cat /proc/mounts | awk '{ print $2}' | grep -E "^{{ mounted_fs }}"
register: get_mounted_filesystems
failed_when: False
changed_when: get_mounted_filesystems.stdout | length > 0
- name: Umount filesystem
mount:
path: "{{ item }}"
state: unmounted
with_items:
"{{ get_mounted_filesystems.stdout_lines }}"