mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
ansible playbook to install log2ram
This commit is contained in:
parent
82554106c9
commit
a30bf5664e
32
ansible_playbook/install_log2ram.yml
Normal file
32
ansible_playbook/install_log2ram.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Add apt-key for new repository
|
||||||
|
apt_key:
|
||||||
|
keyserver: keyserver.ubuntu.com
|
||||||
|
id: CA548A0A0312D8E6
|
||||||
|
- name: Add log2ram to sources.list
|
||||||
|
apt_repository:
|
||||||
|
repo: deb http://packages.azlux.fr/debian/ buster main
|
||||||
|
state: present
|
||||||
|
- name: update pkg database
|
||||||
|
apt:
|
||||||
|
upgrade: yes
|
||||||
|
update_cache: yes
|
||||||
|
- name: Install log2ram
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- log2ram
|
||||||
|
|
||||||
|
- name: modify config
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/log2ram.conf
|
||||||
|
regexp: '^SIZE=(.*)$'
|
||||||
|
line: 'SIZE=80M'
|
||||||
|
backrefs: yes
|
||||||
|
|
||||||
|
- name: Start log2ram service
|
||||||
|
systemd:
|
||||||
|
state: started
|
||||||
|
name: log2ram
|
Loading…
Reference in New Issue
Block a user