xoxys.swap/tasks/main.yml

9 lines
261 B
YAML
Raw Normal View History

2024-04-15 14:39:29 +00:00
---
- name: Delete swap file
ansible.builtin.include_tasks: delete.yml
when: not (swap_enabled | bool) or (swap_size | int > (ansible_swaptotal_mb | int) + 1)
2024-04-15 14:39:29 +00:00
- name: Create swap file
ansible.builtin.include_tasks: create.yml
when: swap_enabled | bool