diff options
author | Kim Hagen <kim@sentrium.io> | 2020-05-04 16:36:43 -0500 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2020-05-04 16:36:43 -0500 |
commit | ab0d98b7baa485959506bb75c28305d86a8f3b33 (patch) | |
tree | 1a2ccd8ec92426d92937ad8b4f26f1653c65e99f /roles/vmware-ova/tasks | |
parent | e025218641378434864f73cf0b7354ce5b97c6a9 (diff) | |
download | vyos-vm-images-ab0d98b7baa485959506bb75c28305d86a8f3b33.tar.gz vyos-vm-images-ab0d98b7baa485959506bb75c28305d86a8f3b33.zip |
simple vmware ova
Diffstat (limited to 'roles/vmware-ova/tasks')
-rw-r--r-- | roles/vmware-ova/tasks/main.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/vmware-ova/tasks/main.yml b/roles/vmware-ova/tasks/main.yml index 0146a15..85fbb6a 100644 --- a/roles/vmware-ova/tasks/main.yml +++ b/roles/vmware-ova/tasks/main.yml @@ -20,6 +20,13 @@ template: src: templates/vyos_vmware_image.ovf.j2 dest: "{{ vyos_vmware_ovf }}" + when: not simple_ova +- name: Generate OVF + become: false + template: + src: templates/vyos_vmware_image.ovf.j2 + dest: "{{ vyos_vmware_ovf }}" + when: simple_ova - name: Generate MF shell: openssl sha1 "{{ vyos_vmware_vmdk | basename }}" "{{ vyos_vmware_ovf | basename }}" args: @@ -32,7 +39,8 @@ content: "{{ result.stdout }}" - name: Converting the OVF to signed OVA become: false - command: "ovftool --compress=9 --privateKey={{ vyos_vmware_private_key_path }} {{ vyos_vmware_ovf }} {{ vyos_vmware_ova }}" + command: "ovftool --compress=9 --privateKey={{ vyos_vmware_private_key_path }} + {{ vyos_vmware_ovf }} {{ vyos_vmware_ova }}" - name: Delete temporary files for VMware file: path: "{{ item }}" |