Refactor svc-opt-swapfile role: move core logic into 01_core.yml, simplify tasks/main.yml, and integrate swapfile setup into sys-svc-docker/01_core.yml to prevent OOM failures. See https://chatgpt.com/share/68d518f2-ba0c-800f-8a3a-c6b045763ac6

This commit is contained in:
2025-09-25 12:27:13 +02:00
parent 598f4e854a
commit 423850d3e6
3 changed files with 25 additions and 17 deletions

View File

@@ -6,6 +6,12 @@
state: present
notify: docker restart
- name: Setup Swapfile to prevent OOM Failures
# @ See https://en.wikipedia.org/wiki/Out_of_memory
include_role:
name: "svc-opt-swapfile"
when: run_once_svc_opt_swapfile is not defined
- name: "Load reset tasks when MODE_RESET is enabled"
include_tasks: "02_reset.yml"
when: MODE_RESET | bool