Set default swapfile size to memory size

This commit is contained in:
2025-07-15 18:39:29 +02:00
parent 2e2501980c
commit 5e83f306b4
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
swapfile_size: 4GB
swapfile_size: "{{ ansible_memtotal_mb | int }}M"

View File

@@ -5,5 +5,5 @@
package_name: swap-forge
- name: Execute create swapfile script
ansible.builtin.shell: swap-forge "{{swapfile_size}}"
shell: swap-forge "{{swapfile_size}}"
become: true