Merge pull request 'chore 📦: Update log2ram version to 1.7.2 and add dynamic versioning in ram.yml' (#40) from dev into main
Reviewed-on: #40
This commit was merged in pull request #40.
This commit is contained in:
@@ -38,6 +38,7 @@ log2ram_ram_percent: 10
|
|||||||
log2ram_min_size_mb: 128
|
log2ram_min_size_mb: 128
|
||||||
log2ram_max_size_mb: 1024
|
log2ram_max_size_mb: 1024
|
||||||
log2ram_host_memtotal_mb: "{{ ansible_memtotal_mb }}"
|
log2ram_host_memtotal_mb: "{{ ansible_memtotal_mb }}"
|
||||||
|
log2ram_version: "1.7.2"
|
||||||
|
|
||||||
# Journald RAM usage limit
|
# Journald RAM usage limit
|
||||||
journald_runtime_max_use: "100M"
|
journald_runtime_max_use: "100M"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
- name: ram | Download log2ram
|
- name: ram | Download log2ram
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: https://github.com/azlux/log2ram/archive/refs/tags/1.7.2.tar.gz
|
url: https://github.com/azlux/log2ram/archive/refs/tags/{{ log2ram_version }}.tar.gz
|
||||||
dest: /tmp/log2ram.tar.gz
|
dest: /tmp/log2ram.tar.gz
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
register: download_archive
|
register: download_archive
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
- name: ram | Install log2ram
|
- name: ram | Install log2ram
|
||||||
ansible.builtin.command: bash install.sh
|
ansible.builtin.command: bash install.sh
|
||||||
args:
|
args:
|
||||||
chdir: "/tmp/log2ram-master"
|
chdir: "/tmp/log2ram-{{ log2ram_version }}"
|
||||||
# 'creates' makes the command idempotent by checking for the binary
|
# 'creates' makes the command idempotent by checking for the binary
|
||||||
creates: /usr/local/bin/log2ram
|
creates: /usr/local/bin/log2ram
|
||||||
notify: Restart log2ram
|
notify: Restart log2ram
|
||||||
|
|||||||
Reference in New Issue
Block a user