diff options
author | Kim <kim.sidney@gmail.com> | 2021-06-11 15:05:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-11 15:05:54 +0200 |
commit | e0ad618192bd652f7a26ed4f34265d4f7de9c45b (patch) | |
tree | 99170c4c52fec8fa99ffb99816f9751d1610058d /vmware.yml | |
parent | cd195f1d2b52a7f695474b4a9c4955db7f74d55b (diff) | |
download | vyos-vm-images-e0ad618192bd652f7a26ed4f34265d4f7de9c45b.tar.gz vyos-vm-images-e0ad618192bd652f7a26ed4f34265d4f7de9c45b.zip |
Updated vmware build playbooks (#18)
* Add debian version variables.
Removed compression flag from ovftool command
* Updated vmware playbook to be able to generate a simple OVA
without properties and set the vmware hardware based on debian version configured
to support debian 10 guests.
* Update the default time servers to the VyOS time servers.
* Add rescue option if the play fails to unmount filesystems.
Diffstat (limited to 'vmware.yml')
-rw-r--r-- | vmware.yml | 58 |
1 files changed, 37 insertions, 21 deletions
@@ -11,24 +11,40 @@ cloud_init: "true" cloud_init_ds_string: "{{ cloud_init_ds | default('OVF,None') }}" cloud_init_ds_list: "{{ cloud_init_ds_string.split(',') }}" - roles: - - install-packages - - load-modules - - download-iso - - mount-iso - - get-version - - create-disk - - setup-root-partition - - install-image - - mount-root-fs - - install-config - - install-grub - - install-persistence-conf - - install-cloud-init-wrapper - - fstrim - - unmount-pre - - unmount-all - - install-open-vmdk - - vmware-ova - - cleanup-ending - - release + vmware_guest: debian10_64Guest + debian_release: 10 + tasks: + - block: + - include_role: + name: '{{ roleinputvar }}' + loop: + - install-packages + - load-modules + - download-iso + - mount-iso + - get-version + - create-disk + - setup-root-partition + - install-image + - mount-root-fs + - install-config + - install-grub + - install-persistence-conf + - install-cloud-init-wrapper + - fstrim + - unmount-pre + - unmount-all + - install-open-vmdk + - vmware + - cleanup-ending + - release + loop_control: + loop_var: roleinputvar + rescue: + - include_role: + name: '{{ roleinputvar }}' + loop: + - unmount-pre + - unmount-all + loop_control: + loop_var: roleinputvar |