Improve Arch packages + Disable swap before unmounting

This commit is contained in:
2025-04-29 20:28:18 +02:00
parent e1464562f7
commit fef1f44a07
2 changed files with 7 additions and 2 deletions

View File

@@ -3,6 +3,11 @@
vars:
ansible_connection: ssh
block:
- name: Disable Swap
ansible.builtin.command: swapoff -a
register: swapoff_result
changed_when: swapoff_result.rc == 0
- name: Unmount /mnt if mounted
ansible.builtin.command: umount -R /mnt
register: unmount_result