Add optional swap support to the base role

This commit is contained in:
2026-09-07 23:38:31 -04:00
parent eb76ed4a9d
commit d3763920a8
4 changed files with 133 additions and 1 deletions
@@ -0,0 +1,9 @@
# Managed by Ansible
[{{ item.key }}]
zram-size = {{ item.value.size | default('ram') }}
compression-algorithm = {{ item.value.algorithm | default('zstd') }}
{% if item.value.writeback_device is defined %}
writeback-device = {{ item.value.writeback_device }}
{% endif %}
swap-priority = {{ item.value.priority | default(100) }}
fs-type = {{ item.value.fs_type | default('swap') }}