feat ✨: Add new task to stop log2ram before extracting it #42
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Review Summary
log2ramservice before extraction and installation, improving the maintainability of the script by preventing potential conflicts.diff File: tasks/ram.yml Context: Line 47: - name: ram | Logic to extract and install log2ram Line 48: when: download_archive.changed # noqa: no-handler Line 49: block: Line 50: + - name: ram | Stop log2ram if present Line 51: + ansible.builtin.systemd: Line 52: + name: log2ram Line 53: + state: stopped Line 54: + become: true Line 55: + failed_when: false Line 56: + Line 57: - name: ram | Extract log2ram Line 58: ansible.builtin.unarchive: Line 59: src: "/tmp/log2ram.tar.gz" Context: Line 50: + - name: ram | Stop log2ram if present StartLine: 50 EndLine: 55 Comment: [Score: 3] Adding a check to stop the `log2ram` service before extraction and installation, preventing potential conflicts.