diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-06-28 01:23:02 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-06-28 01:23:02 +0900 |
commit | 86f71d4334f2269ff8f0268d200f03b73e1c26b7 (patch) | |
tree | 1fe8415733cdf993549ae6bcf067f4ea6c272e03 /roles/vmware/tasks/unmount.yml | |
parent | ebf269e8926d3dbd2a543aabe598ef4cfa68a5ff (diff) | |
download | vyos-vm-images-86f71d4334f2269ff8f0268d200f03b73e1c26b7.tar.gz vyos-vm-images-86f71d4334f2269ff8f0268d200f03b73e1c26b7.zip |
Cleanup playbook
Diffstat (limited to 'roles/vmware/tasks/unmount.yml')
-rw-r--r-- | roles/vmware/tasks/unmount.yml | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/roles/vmware/tasks/unmount.yml b/roles/vmware/tasks/unmount.yml deleted file mode 100644 index 39c3d52..0000000 --- a/roles/vmware/tasks/unmount.yml +++ /dev/null @@ -1,66 +0,0 @@ -# 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 |