From eb548e84767d0a86ff7358d4cbb570a46e0a9801 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 16 Feb 2026 20:52:32 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20new=20task=20to=20sto?= =?UTF-8?q?p=20log2ram=20before=20extracting=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a new step in the extraction process to ensure that log2ram is stopped before proceeding with the extraction, preventing potential data corruption or loss. --- tasks/ram.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/ram.yml b/tasks/ram.yml index 75ddce6..19e84e2 100644 --- a/tasks/ram.yml +++ b/tasks/ram.yml @@ -47,6 +47,13 @@ - name: ram | Logic to extract and install log2ram when: download_archive.changed # noqa: no-handler block: + - name: ram | Stop log2ram if present + ansible.builtin.systemd: + name: log2ram + state: stopped + become: true + failed_when: false + - name: ram | Extract log2ram ansible.builtin.unarchive: src: "/tmp/log2ram.tar.gz"