From b077c2942620581bdb519e6584a40cb383a841e0 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 28 Jun 2021 12:57:35 +0200 Subject: add ability to rebuild an ISO --- roles/create-iso/tasks/main.yml | 12 ++++++++++++ roles/create-iso/tests/inventory | 2 ++ roles/create-iso/tests/test.yml | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 roles/create-iso/tasks/main.yml create mode 100644 roles/create-iso/tests/inventory create mode 100644 roles/create-iso/tests/test.yml (limited to 'roles/create-iso') diff --git a/roles/create-iso/tasks/main.yml b/roles/create-iso/tasks/main.yml new file mode 100644 index 0000000..6eef4e0 --- /dev/null +++ b/roles/create-iso/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: create new iso + become: true + command: > + xorriso -as mkisofs -R -r -J -joliet-long -l -cache-inodes \ + -iso-level 3 -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \ + -partition_offset 16 -A "VyOS" -p "live-build 1:20190311.1; \ + https://debian-live.alioth.debian.org/live-build" \ + -publisher "autobuild@vyos.net" -V "VyOS" --modification-date={{ lookup('pipe','date +\"%Y%m%d%H%M%S%2N\"') }} \ + -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \ + -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \ + -isohybrid-gpt-basdat -isohybrid-apm-hfsplus -o {{ vyos_cloud_upgrade_iso }} /tmp/live-{{ vyos_version }} diff --git a/roles/create-iso/tests/inventory b/roles/create-iso/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/create-iso/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/create-iso/tests/test.yml b/roles/create-iso/tests/test.yml new file mode 100644 index 0000000..96c69cb --- /dev/null +++ b/roles/create-iso/tests/test.yml @@ -0,0 +1,4 @@ +--- +- hosts: localhost + roles: + - install-image -- cgit v1.2.3