aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_gentoo/tasks/mount.yml')
-rw-r--r--roles/install_gentoo/tasks/mount.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/roles/install_gentoo/tasks/mount.yml b/roles/install_gentoo/tasks/mount.yml
new file mode 100644
index 0000000..74672cb
--- /dev/null
+++ b/roles/install_gentoo/tasks/mount.yml
@@ -0,0 +1,44 @@
+---
+- name: mkdir /mnt/gentoo
+ ansible.builtin.file:
+ path: /mnt/gentoo
+ state: directory
+ tags:
+ - mount
+
+- name: mount /
+ ansible.builtin.command: "mount /dev/{{ vgs }}/rootfs /mnt/gentoo"
+ tags:
+ - mount
+
+- name: mkdir /mnt/gentoo/boot
+ ansible.builtin.file:
+ path: /mnt/gentoo/boot
+ state: directory
+ tags:
+ - mount
+
+- name: mount /boot
+ ansible.builtin.command: "mount LABEL=BOOT /mnt/gentoo/boot"
+ tags:
+ - mount
+
+- name: mkdir /mnt/gentoo/boot/efi
+ ansible.builtin.file:
+ path: /mnt/gentoo/boot/efi
+ state: directory
+ tags:
+ - mount
+
+- name: mount /boot/efi
+ ansible.builtin.command: "mount LABEL=EFI /mnt/gentoo/boot/efi"
+ tags:
+ - mount
+
+- name: mkdir /mnt/gentoo/tmp
+ ansible.builtin.file:
+ path: /mnt/gentoo/tmp
+ state: directory
+ mode: '01777'
+ tags:
+ - mount