ReaR restore initial

This commit is contained in:
2025-03-06 01:07:40 -05:00
parent 1cbc9699d8
commit 13ff9b24d6
8 changed files with 95 additions and 217 deletions

View File

@ -0,0 +1,4 @@
---
- name: Update Grub
ansible.builtin.command:
cmd: grub2-mkconfig -o /boot/grub2/grub.cfg

View File

@ -0,0 +1,8 @@
---
- name: Update menu item for ReaR in Grub config
ansible.builtin.lineinfile:
path: "{{ rear_vars_grub_conf }}"
regexp: '^menuentry '
line: "menuentry '{{ rear_vars_grub_label }}' --class os {"
state: present
notify: Update Grub