packer-qemu/image/assets/ansible/roles/setup/tasks/umount.yml

17 lines
295 B
YAML

---
# umount and disabe swap
- name: "disable swap partition"
command: "swapoff -a"
tags:
- umount
- name: "Umount partition"
mount:
path: "{{ item.mount_dir }}"
state: "unmounted"
loop: "{{ lvs | reverse | list }}"
when: "item.mount_dir is defined"
tags:
- umount