summaryrefslogtreecommitdiff
path: root/roles/install-grub/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install-grub/tasks/main.yml')
-rw-r--r--roles/install-grub/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/install-grub/tasks/main.yml b/roles/install-grub/tasks/main.yml
index f9cc772..dfe765d 100644
--- a/roles/install-grub/tasks/main.yml
+++ b/roles/install-grub/tasks/main.yml
@@ -19,8 +19,14 @@
args:
warn: no
+- name: Create efi directory
+ become: true
+ file:
+ path: "{{ vyos_install_root }}/boot/grub"
+ state: directory
- name: Mount EFI
+ become: true
mount:
src: "{{ vyos_target_drive }}p2"
path: "{{ vyos_install_root }}/boot/efi"
@@ -45,6 +51,7 @@
mode: 0644
- name: Unmount EFI
+ become: true
mount:
src: "{{ vyos_target_drive }}p2"
path: "{{ vyos_install_root }}/boot/efi"