diff --git a/roles/install_log2ram/tasks/main.yaml b/roles/install_log2ram/tasks/main.yaml new file mode 100644 index 0000000..a833016 --- /dev/null +++ b/roles/install_log2ram/tasks/main.yaml @@ -0,0 +1,36 @@ +--- +- name: Verifying log2ram key is installed + ansible.builtin.get_url: + dest: /usr/share/keyrings/azlux-archive-keyring.gpg + url: https://azlux.fr/repo.gpg + mode: '0444' + become: true + become_method: sudo + +- name: Verifying log2ram repository installed + ansible.builtin.apt_repository: + repo: deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ bullseye main + filename: azlux.list + state: present + become: true + become_method: sudo + +- name: Performing APT cache update + ansible.builtin.apt: + upgrade: no + update_cache: yes + cache_valid_time: 86400 + become: true + become_method: sudo + +- name: Install log2ram + ansible.builtin.package: + name: + - log2ram + +# Maintainer 'highly' recommends rebooting before proceeding +- name: Reboot before continuing + ansible.builtin.reboot: + post_reboot_delay: 30 + become: true + become_method: sudo