summaryrefslogtreecommitdiff
path: root/roles/install-grub/tasks
diff options
context:
space:
mode:
authorcreate with ansible <qxmips@debian10-vyos-build.local>2020-10-08 01:35:44 -0400
committercreate with ansible <qxmips@debian10-vyos-build.local>2020-10-08 01:35:44 -0400
commitcdbd9df937e524c1d89ef74c15a013e79359b9fc (patch)
treed3794fe7742a926daa665b509e47b2b0b97063f9 /roles/install-grub/tasks
parente025218641378434864f73cf0b7354ce5b97c6a9 (diff)
downloadvyos-vm-images-cdbd9df937e524c1d89ef74c15a013e79359b9fc.tar.gz
vyos-vm-images-cdbd9df937e524c1d89ef74c15a013e79359b9fc.zip
minor fixes
Diffstat (limited to 'roles/install-grub/tasks')
-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"