---
-
  name: Disable swap (if configured).
  ansible.builtin.command: swapoff -a
  tags: ['skip_ansible_lint']

-
  name: Ensure swap file doesn't exist (if configured).
  ansible.builtin.file:
    path: "{{ swap_file_path }}"
    state: absent
