From 7e581d3656af42d8181d5d22459de20ef78a6ae4 Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 4 May 2020 19:08:45 -0500 Subject: use docker for ovftool, no vmware compression and update config file --- roles/vmware-ova/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'roles/vmware-ova/tasks') diff --git a/roles/vmware-ova/tasks/main.yml b/roles/vmware-ova/tasks/main.yml index 85fbb6a..052722f 100644 --- a/roles/vmware-ova/tasks/main.yml +++ b/roles/vmware-ova/tasks/main.yml @@ -24,7 +24,7 @@ - name: Generate OVF become: false template: - src: templates/vyos_vmware_image.ovf.j2 + src: templates/vyos_vmware_simple.ovf.j2 dest: "{{ vyos_vmware_ovf }}" when: simple_ova - name: Generate MF @@ -39,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 }} + command: "docker run -v {{ vyos_vmware_private_key_path }}:{{ vyos_vmware_private_key_path }} + -v /tmp:/tmp moander/ovftool ovftool --privateKey={{ vyos_vmware_private_key_path }} {{ vyos_vmware_ovf }} {{ vyos_vmware_ova }}" - name: Delete temporary files for VMware file: -- cgit v1.2.3