From 715d7efa74747c8dfee574413104f99c5eacb5cc Mon Sep 17 00:00:00 2001 From: don Rumata Date: Thu, 23 Sep 2021 14:28:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D1=83=20=D1=81=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BE=D0=B9=20=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=84=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F=20VirtualBox\Windows=2010.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/draft.yml | 6 ++++ ...stall-guest-tools-4-virtualbox-windows.yml | 29 +++++++++++-------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/tasks/draft.yml b/tasks/draft.yml index ab22815..43c4c6f 100644 --- a/tasks/draft.yml +++ b/tasks/draft.yml @@ -16,6 +16,12 @@ # http://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf # https://github.com/vmware/open-vm-tools # https://community.chocolatey.org/packages/vmware-tools#files +# https://packages.vmware.com/tools/versions +# https://www.vmware.com/support/ws5/doc/ws_install_silent.html +# https://docs.vmware.com/en/VMware-Tools/11.3.0/com.vmware.vsphere.vmwaretools.doc/GUID-E45C572D-6448-410F-BFA2-F729F2CDA8AC.html + +# https://packages.vmware.com/tools/releases/latest/windows/x64/VMware-tools-11.3.0-18090558-x86_64.exe +# 11360 esx/0.0 11.3.0 18090558 # - name: parse html # block: # - uri: diff --git a/tasks/install-guest-tools-4-virtualbox-windows.yml b/tasks/install-guest-tools-4-virtualbox-windows.yml index 3ea12ac..b164854 100644 --- a/tasks/install-guest-tools-4-virtualbox-windows.yml +++ b/tasks/install-guest-tools-4-virtualbox-windows.yml @@ -1,22 +1,15 @@ --- -- name: Set fact about virtualbox guest iso content root path +- name: Set fact about virtualbox guest iso content root path 4 Windows 7 when: - ansible_os_family == 'Windows' + - ansible_distribution_major_version == '6' - ansible_virtualization_type == 'virtualbox' or ansible_virtualization_type == 'VirtualBox' - not (win_virtualbox_service_info.exists) - block: - # 4 win10 - - set_fact: - virtualbox_guest_additions_iso_content_root_path_fact: - '{{ disk_image_out.mount_path }}' - when: ansible_distribution_major_version == '10' - # 4 win7 - - set_fact: - virtualbox_guest_additions_iso_content_root_path_fact: - '{{ ansible_env.TMP }}\vboxwindowsadditions' - when: ansible_distribution_major_version == '6' + set_fact: + virtualbox_guest_additions_iso_content_root_path_fact: + '{{ ansible_env.TMP }}\vboxwindowsadditions' - name: Download {{ virtualbox_guest_additions_iso_basename_fact }} 4 Windows when: @@ -48,6 +41,18 @@ state: present register: disk_image_out +- name: Set fact about virtualbox guest iso content root path 4 Windows 10 + when: + - ansible_os_family == 'Windows' + - ansible_distribution_major_version == '10' + - ansible_virtualization_type == 'virtualbox' + or + ansible_virtualization_type == 'VirtualBox' + - not (win_virtualbox_service_info.exists) + set_fact: + virtualbox_guest_additions_iso_content_root_path_fact: + '{{ disk_image_out.mount_path }}' + - name: Exract iso over 7-zip 4 Windows 7 when: - ansible_os_family == 'Windows'