add swapfile role

This commit is contained in:
Sergey Malyuk
2025-12-18 10:54:07 +03:00
parent 02d63ac131
commit d27ba46d5b
11 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
---
- 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