ansible/roles/swap/tasks/main.yaml
2022-08-30 07:51:17 -05:00

16 lines
247 B
YAML

---
- name: manage swap
command: swapoff -a
when: not swap_enabled
- name: manage swapfile
file:
path: "{{ swap_file_path }}"
state: absent
- name: manage fstab
lineinfile:
path: /etc/fstab
regexp: swap
state: absent