Migrated to ansible
This commit is contained in:
17
roles/minegrub/tasks/main.yml
Normal file
17
roles/minegrub/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: "[Minegrub] Install"
|
||||
ansible.builtin.copy:
|
||||
src: "./"
|
||||
dest: "/boot/grub/themes/"
|
||||
force: false
|
||||
become: true
|
||||
|
||||
- name: "[Minegrub] Configure"
|
||||
shell: sed -i '/^\(#\)\?GRUB_THEME/ s~.*~GRUB_THEME=/boot/grub/themes/minegrub/theme.txt~' /etc/default/grub
|
||||
ignore_errors: true
|
||||
become: true
|
||||
|
||||
- name: "[Minegrub] Updating grub"
|
||||
shell: grub-mkconfig -o /boot/grub/grub.cfg
|
||||
ignore_errors: true
|
||||
become: true
|
||||
Reference in New Issue
Block a user