xoxys.swap/tasks/main.yml
Robert Kaussow f2c009b42d
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
refctor: rework ci to ue ansible-lint and fix molecule
2024-08-19 16:06:16 +02:00

9 lines
261 B
YAML

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