xoxys.swap/tasks/delete.yml
Robert Kaussow f2c009b42d
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
refctor: rework ci to ue ansible-lint and fix molecule
2024-08-19 16:06:16 +02:00

17 lines
356 B
YAML

---
- name: Disable swap
ansible.builtin.shell: "test -f {{ swap_path }} && swapoff {{ swap_path }} || true"
changed_when: False
- name: Unmount swap file
ansible.posix.mount:
src: "{{ swap_path }}"
path: none
fstype: swap
state: absent
- name: Remove swap file
ansible.builtin.file:
path: "{{ swap_path }}"
state: absent