Set default swapfile size to memory size

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-15 18:39:29 +02:00
parent 2e2501980c
commit 5e83f306b4
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
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