Compare commits

..

2 Commits

Author SHA1 Message Date
6f27f0c47c Merge pull request 'feat : Add new task to stop log2ram before extracting it' (#42) from dev into main
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s
Mark stale issues and pull requests / stale (push) Successful in 3s
Reviewed-on: #42
2026-02-16 20:54:28 +01:00
eb548e8476 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.
2026-02-16 20:52:32 +01:00

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"