Files
gitlab-mirror/roles/swapfile/tasks/disable.yml
2025-12-18 11:29:03 +03:00

12 lines
233 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: "{{ swapfile_path }}"
state: absent