ansible/roles/swap/tasks/main.yaml

16 lines
247 B
YAML
Raw Permalink Normal View History

2022-08-30 12:51:17 +00:00
---
- 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