Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
ok I got it working now with win_command but still having some errors TASK [Install Vmware tools Silent] ** task path: /home/tony/windows/download2.yml:15 Using module file

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
now no errors but its not getting installed as it would manually, PLAY [testing win_get_url] ** TASK [Gathering Facts]

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
I already tried the arguments. I know /s /v /qn works manually. why does that work on ansible? --- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: c:\temp state: directory - name: Download exe to winbox

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Jean-Yves LENHOF
Hi, Just a guess (I'm not a windows man)...Perhaps you need to do silent install because you are not "desktop logged" when you use ansible. Have a look here for some example (you need to look for the good ones for your version, but you've got the idea)

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
but I got all the steps working except win_package, There seems to be something wrong with execution. I manually ran the setup.exe and works On Tue, May 26, 2020 at 12:18 PM David Foley wrote: > instead of the win_get_url use the win_package that will install the > application for you

[ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread David Foley
instead of the win_get_url use the win_package that will install the application for you vm_tools win_package: path: https://repo.saltstack.com/windows/Salt-Minion-3000-Py3-AMD64-Setup.exe product_id: 'Salt-Minion-3000-Py3-AMD64-Setup.exe' arguments: