From a599e26a630bff62d59a1d63221fc6c9e2f31a47 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Thu, 31 Oct 2024 02:18:55 +0100 Subject: [PATCH] Add zram-generator config --- roles/configuration/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index 5839112..12c892b 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -193,6 +193,17 @@ marker: "" mode: '0644' + - name: Create zram config + ansible.builtin.copy: + dest: /mnt/etc/systemd/zram-generator.conf + content: | + [zram0] + zram-size = ram / 2 + compression-algorithm = zstd + swap-priority = 100 + fs-type = swap + mode: '0644' + - name: Copy FirstRun Script when: os | lower != "archlinux" ansible.builtin.template: