From 31aa355bd4a6688546ad00e8eed7944f94f49405 Mon Sep 17 00:00:00 2001 From: linhuali Date: Thu, 3 Aug 2023 14:16:56 +0000 Subject: [PATCH] update firefox download url for different windows Signed-off-by: linhuali --- desktop_hypervisor/windows/dh_vmrun/browser_test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/desktop_hypervisor/windows/dh_vmrun/browser_test.yml b/desktop_hypervisor/windows/dh_vmrun/browser_test.yml index 4ad3c316a..97421ba0d 100644 --- a/desktop_hypervisor/windows/dh_vmrun/browser_test.yml +++ b/desktop_hypervisor/windows/dh_vmrun/browser_test.yml @@ -15,9 +15,15 @@ ansible.builtin.set_fact: vmrun_with_powershell: '"{{ dh_host_vmrun_path }}" -T ws -gu {{ dh_vm_username }} -gp {{ dh_vm_password }} runProgramInGuest "{{ dh_vm_vmx_path }}" -activeWindow {{ powershell_path }}' -- name: "Initialize facts for firefox_url" +- name: "Initialize facts for firefox_url in {{ dh_guest_id }}" ansible.builtin.set_fact: firefox_url: 'https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US' + when: dh_guest_id is not match('windows(7|8).*') + +- name: "Initialize facts for firefox_url in {{ dh_guest_id }}" + ansible.builtin.set_fact: + firefox_url: 'https://download.mozilla.org/?product=firefox-115.0.3-ssl&os=win&lang=en-US' + when: dh_guest_id is match('windows(7|8).*') - name: "Download firefox in Windows host" block: