aboutsummaryrefslogtreecommitdiff
blob: 74672cbeb0e6574d8d868e25983e24e81047f7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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