diff options
author | Kim <kim.sidney@gmail.com> | 2021-06-28 12:57:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 12:57:35 +0200 |
commit | b077c2942620581bdb519e6584a40cb383a841e0 (patch) | |
tree | 5d9e98c1be886bb2bf9bc3d9da676c78caa90fda /roles/extract-image | |
parent | e0ad618192bd652f7a26ed4f34265d4f7de9c45b (diff) | |
download | vyos-vm-images-b077c2942620581bdb519e6584a40cb383a841e0.tar.gz vyos-vm-images-b077c2942620581bdb519e6584a40cb383a841e0.zip |
add ability to rebuild an ISO
Diffstat (limited to 'roles/extract-image')
-rw-r--r-- | roles/extract-image/tasks/main.yml | 6 | ||||
-rw-r--r-- | roles/extract-image/tests/inventory | 2 | ||||
-rw-r--r-- | roles/extract-image/tests/test.yml | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/roles/extract-image/tasks/main.yml b/roles/extract-image/tasks/main.yml new file mode 100644 index 0000000..cde5b4d --- /dev/null +++ b/roles/extract-image/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: Extract squashfs image from ISO to root partition + become: true + command: unsquashfs -d {{ vyos_install_root }} {{ vyos_squashfs_image }} + args: + creates: "{{ vyos_install_root }}" diff --git a/roles/extract-image/tests/inventory b/roles/extract-image/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/extract-image/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/extract-image/tests/test.yml b/roles/extract-image/tests/test.yml new file mode 100644 index 0000000..96c69cb --- /dev/null +++ b/roles/extract-image/tests/test.yml @@ -0,0 +1,4 @@ +--- +- hosts: localhost + roles: + - install-image |