Add swap_enabled toggle for swap setup

This commit is contained in:
2026-01-02 18:51:27 +01:00
parent 2891de8fef
commit ce972e55dd
5 changed files with 146 additions and 48 deletions

View File

@@ -26,7 +26,9 @@
mode: "0644"
- name: Create zram config
when: os | lower not in ['debian11', 'rhel8']
when:
- os | lower not in ['debian11', 'rhel8']
- swap_enabled | bool
ansible.builtin.copy:
dest: /mnt/etc/systemd/zram-generator.conf
content: |