feat : Add new task to stop log2ram before extracting it
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 6s
ai-reviews / Review PR (pull_request) Successful in 14s
PR check / Gitleaks (pull_request) Successful in 4s
PR check / lint tests (pull_request) Successful in 15s
PR check / labeler (pull_request) Successful in 2s
PR check / handle_failures (pull_request) Has been skipped
PR check / handle_success (pull_request) Successful in 2s

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.
This commit is contained in:
2026-02-16 20:52:32 +01:00
parent 954bd185f5
commit eb548e8476

View File

@@ -47,6 +47,13 @@
- name: ram | Logic to extract and install log2ram - name: ram | Logic to extract and install log2ram
when: download_archive.changed # noqa: no-handler when: download_archive.changed # noqa: no-handler
block: block:
- name: ram | Stop log2ram if present
ansible.builtin.systemd:
name: log2ram
state: stopped
become: true
failed_when: false
- name: ram | Extract log2ram - name: ram | Extract log2ram
ansible.builtin.unarchive: ansible.builtin.unarchive:
src: "/tmp/log2ram.tar.gz" src: "/tmp/log2ram.tar.gz"