From 6a3110357f4b6297b19ca497309629ec36429493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Thu, 8 Feb 2024 10:34:39 +0100 Subject: [PATCH] Add script to update grub --- roles/desktop/files/usr/local/sbin/update-grub | 3 +++ roles/desktop/tasks/arch.yml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 roles/desktop/files/usr/local/sbin/update-grub diff --git a/roles/desktop/files/usr/local/sbin/update-grub b/roles/desktop/files/usr/local/sbin/update-grub new file mode 100644 index 0000000..151362e --- /dev/null +++ b/roles/desktop/files/usr/local/sbin/update-grub @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +grub-mkconfig -o /boot/grub/grub.cfg diff --git a/roles/desktop/tasks/arch.yml b/roles/desktop/tasks/arch.yml index 73635fe..0654370 100644 --- a/roles/desktop/tasks/arch.yml +++ b/roles/desktop/tasks/arch.yml @@ -114,6 +114,14 @@ state: present name: com.usebottles.bottles +- name: copy scripts + become: yes + copy: + src: "usr/local/sbin/{{item}}" + dest: "/usr/local/sbin/{{item}}" + mode: '0755' + loop: + - update-grub - import_tasks: audio.yml - import_tasks: bluetooth.yml