Files
gitlab-mirror/roles/swapfile/tasks/disable.yml
2025-12-18 10:54:07 +03:00

12 lines
234 B
YAML

---
- name: "Disable | disable swap"
changed_when: false
ansible.builtin.command:
cmd: swapoff -a
- name: "Disable | ensure swap file doesn't exist"
ansible.builtin.file:
path: "{{ swap_file_path }}"
state: absent