From a30bf5664e435b4e8f205a8d27abc63fb96dbc2e Mon Sep 17 00:00:00 2001 From: Stefan Muthers Date: Sat, 8 May 2021 20:57:14 +0200 Subject: [PATCH] ansible playbook to install log2ram --- ansible_playbook/install_log2ram.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ansible_playbook/install_log2ram.yml diff --git a/ansible_playbook/install_log2ram.yml b/ansible_playbook/install_log2ram.yml new file mode 100644 index 0000000..5c36a08 --- /dev/null +++ b/ansible_playbook/install_log2ram.yml @@ -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