Optimized Swapfiles variables and enabled async

This commit is contained in:
2025-09-23 18:34:18 +02:00
parent 3211dd7cea
commit fc99c72f86
2 changed files with 5 additions and 2 deletions

View File

@@ -13,5 +13,7 @@
package_name: swap-forge
- name: Execute create swapfile script
shell: swap-forge "{{swapfile_size}}"
shell: swap-forge "{{ SWAPFILE_SIZE }}"
become: true
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"

View File

@@ -1,2 +1,3 @@
application_id: "svc-opt-swapfile"
swapfile_size: "{{ applications | get_app_conf(application_id, 'swapfile_size') }}"
SWAPFILE_SIZE: "{{ applications | get_app_conf(application_id, 'swapfile_size') }}"