blob: 39c3d52f1a48271facf4bb152c110f1894bd1096 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Unmount all mounts
# If remove unmounted before absent, cannot unmount INSTALL_ROOT...
- name: Unmount {{ INSTALL_ROOT }}/boot
mount:
name: "{{ INSTALL_ROOT }}/boot"
src: "{{ WRITE_ROOT }}"
fstype: none
state: unmounted
- name: Unmount {{ INSTALL_ROOT }}/boot
mount:
name: "{{ INSTALL_ROOT }}/boot"
src: "{{ WRITE_ROOT }}"
fstype: none
state: absent
- name: Unmount {{ INSTALL_ROOT }}/sys, {{ INSTALL_ROOT }}/proc, {{ INSTALL_ROOT }}/dev
mount:
name: "{{ INSTALL_ROOT }}/{{ item }}"
src: "/{{ item }}"
fstype: none
state: unmounted
with_items: [ 'sys', 'proc', 'dev' ]
- name: Unmount {{ INSTALL_ROOT }}/sys, {{ INSTALL_ROOT }}/proc, {{ INSTALL_ROOT }}/dev
mount:
name: "{{ INSTALL_ROOT }}/{{ item }}"
src: "/{{ item }}"
fstype: none
state: absent
with_items: [ 'sys', 'proc', 'dev' ]
- name: Unmount {{ INSTALL_ROOT }}
mount:
name: "{{ INSTALL_ROOT }}"
src: overlayfs
fstype: overlayfs
state: absent
- name: Unmount {{ READ_ROOT }}
mount:
name: "{{ READ_ROOT }}"
src: "{{ WRITE_ROOT }}/boot/{{ version_string.stdout }}/{{ version_string.stdout }}.squashfs"
fstype: squashfs
state: absent
- name: Unmount {{ WRITE_ROOT }}
mount:
name: "{{ WRITE_ROOT }}"
src: "{{ loopback.stdout }}"
fstype: "{{ ROOT_FSTYPE }}"
state: absent
- name: Unmount {{ CD_SQUASH_ROOT }}
mount:
name: "{{ CD_SQUASH_ROOT }}"
src: "{{ SQUASHFS_IMAGE }}"
fstype: squashfs
state: absent
- name: Unmount {{ CD_ROOT }}
mount:
name: "{{ CD_ROOT }}"
src: "{{ vyos_iso_local }}"
fstype: iso9660
state: absent
|