# Vm mount iso and install vmware tools

**URL:** <https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972>\
**Category:** Ansible Project\
**Tags:** windows, vmware\
**Created:** [May 19, 2020, 1:56pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972 "2020-05-19T13:56:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 19, 2020, 1:56pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/1 "2020-05-19T13:56:17Z")

</div>

IS there a playbook or how do i start with installing and upgrading vmware tools on windows vm

for VM with no tools installed

I need to

1. mount the vmware tools iso
2. run the setup64.exe /S /v “/qn REBOOT=R ADDLOCAL=ALL”

any idea how to start with this?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [May 19, 2020, 2:25pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/2 "2020-05-19T14:25:05Z")

</div>

[https://docs.ansible.com/ansible/latest/modules/vmware\_guest\_tools\_upgrade\_module.html#vmware-guest-tools-upgrade-module](https://docs.ansible.com/ansible/latest/modules/vmware_guest_tools_upgrade_module.html#vmware-guest-tools-upgrade-module)

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [May 19, 2020, 3:15pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/3 "2020-05-19T15:15:48Z")

</div>

Hi,

Why not using curl on this site or into an internal server synchronized on this server :

[https://packages.vmware.com/tools/esx/index.html](https://packages.vmware.com/tools/esx/index.html)

For example you have direct executable here :

[https://packages.vmware.com/tools/esx/6.7u3/windows/x64/](https://packages.vmware.com/tools/esx/6.7u3/windows/x64/)

Use win\_get\_url module and win\_command\_module should help…

Using this technique it’s up to you to install whatever vmware toolbox you want…respecting the matrix on the vmware website on host and guest

(Sometime you can install a vmware tools not available on iso using this tip but compatible with your guest/host combination)

Regards,

JYL

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 19, 2020, 3:42pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/4 "2020-05-19T15:42:10Z")

</div>

I am not sure. because curl is not available on windows boxes.

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [May 19, 2020, 3:50pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/5 "2020-05-19T15:50:04Z")

</div>

As written in my email : win\_get\_url module

Télécharger [BlueMail pour Android](http://www.bluemail.me/r?b=15860)

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 1:09pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/6 "2020-05-26T13:09:53Z")

</div>

any idea why this is failing? Syntax is right as far as I can tell

TASK [Create Directory if not exist] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [[rw-ctxweb-02.wsgr.com](http://rw-ctxweb-02.wsgr.com)]  
ok: [[pa-mgt01.wsgr.com](http://pa-mgt01.wsgr.com)]

TASK [Download exe to winbox] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [rw-ctxweb-02.xxxx]: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (win\_get\_url) module: destination. Supported parameters include: url\_username, proxy\_username, client\_cert\_password, timeout, checksum\_url, checksum\_algorithm, method, force\_basic\_auth, checksum, http\_agent, validate\_certs, use\_proxy, dest, proxy\_password, headers, proxy\_url, proxy\_use\_default\_credential, url\_password, url, follow\_redirects, use\_default\_credential, client\_cert, force, maximum\_redirection, user, username, password”}  
fatal: [pa-mgt01.xxxxxx]: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (win\_get\_url) module: destination. Supported parameters include: url\_username, proxy\_username, client\_cert\_password, timeout, checksum\_url, checksum\_algorithm, method, force\_basic\_auth, checksum, http\_agent, validate\_certs, use\_proxy, dest, proxy\_password, headers, proxy\_url, proxy\_use\_default\_credential, url\_password, url, follow\_redirects, use\_default\_credential, client\_cert, force, maximum\_redirection, user, username, password”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
pa-mgt01.xxxxx : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0  
rw-ctxweb-02.xxxxx : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

tony@ubuntu2:~/windows$ cat download.yml

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [May 26, 2020, 1:25pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/7 "2020-05-26T13:25:48Z")

</div>

> any idea why this is failing? Syntax is right as far as I can tell

That tells me that your prowess in reading error messages is somewhat limited :-).

As per documentation: use dest parameter instead of destination.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 1:52pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/8 "2020-05-26T13:52:39Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 2:43pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/9 "2020-05-26T14:43:29Z")

</div>

any idea what this error is?

TASK [Install Vmware tools Silent] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/windows/download.yml:15  
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win\_package.ps1  
Pipelining is enabled.  
\<[pa-mgt01.wsgr.com](http://pa-mgt01.wsgr.com)\> ESTABLISH WINRM CONNECTION FOR USER: [adm-tkw@WSGR.COM](mailto:adm-tkw@WSGR.COM) on PORT 5986 TO [pa-mgt01.wsgr.com](http://pa-mgt01.wsgr.com)  
EXEC (via pipeline wrapper)  
fatal: [[pa-mgt01.wsgr.com](http://pa-mgt01.wsgr.com)]: FAILED! =\> {  
“changed”: false,  
“msg”: “unexpected rc from install c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe: see rc, stdout and stderr for more details”,  
“rc”: 1639,  
“reboot\_required”: false,  
“stderr”: “”,  
“stderr\_lines”: ,  
“stdout”: “”,  
“stdout\_lines”:   
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
pa-mgt01 : ok=3 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

playbook:

tony@ubuntu2:~/windows$ cat download.yml

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 4:19pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/10 "2020-05-26T16:19:15Z")

</div>

any idea? I added state: present and still getting same error

fatal: [[pa-mgt01.wsgr.com](http://pa-mgt01.wsgr.com)]: FAILED! =\> {  
“changed”: false,  
“msg”: “unexpected rc from install c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe: see rc, stdout and stderr for more details”,  
“rc”: 1639,  
“reboot\_required”: false,  
“stderr”: “”,  
“stderr\_lines”: ,  
“stdout”: “”,  
“stdout\_lines”:

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [May 26, 2020, 7:18pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/11 "2020-05-26T19:18:06Z")

</div>

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](https://repo.saltstack.com/windows/Salt-Minion-3000-Py3-AMD64-Setup.exe)  
product\_id: ‘Salt-Minion-3000-Py3-AMD64-Setup.exe’  
arguments: ‘Salt-Minion-3000-Py3-AMD64-Setup.exe /S /master={{ master }} /minion-name={{ minion }}’  
state: present

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 8:46pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/12 "2020-05-26T20:46:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [May 26, 2020, 9:18pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/13 "2020-05-26T21:18:40Z")

</div>

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)

[https://uncomplicatingit.com/vmware/command-to-do-a-complete-vmware-tools-install-silently/](https://uncomplicatingit.com/vmware/command-to-do-a-complete-vmware-tools-install-silently/)

Regards,

JYL

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 9:52pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/14 "2020-05-26T21:52:45Z")

</div>

I already tried the arguments. I know /s /v /qn works manually.

why does that work on ansible?

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 10:07pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/15 "2020-05-26T22:07:56Z")

</div>

now no errors but its not getting installed as it would manually,

PLAY [testing win\_get\_url] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/windows/download.yml:2  
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/setup.ps1  
Pipelining is enabled.  
 ESTABLISH WINRM CONNECTION FOR USER: [adm-tkw@WSGR.COM](mailto:adm-tkw@WSGR.COM) on PORT 5986 TO w10-adm-tkw  
EXEC (via pipeline wrapper)  
ok: [w10-adm-tkw]  
META: ran handlers

TASK [Create Directory if not exist] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/windows/download.yml:5  
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win\_file.ps1  
Pipelining is enabled.  
 ESTABLISH WINRM CONNECTION FOR USER: [adm-tkw@WSGR.COM](mailto:adm-tkw@WSGR.COM) on PORT 5986 TO w10-adm-tkw  
EXEC (via pipeline wrapper)  
ok: [w10-adm-tkw] =\> {  
“changed”: false  
}

TASK [Download exe to winbox] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/windows/download.yml:10  
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win\_get\_url.ps1  
Pipelining is enabled.  
 ESTABLISH WINRM CONNECTION FOR USER: [adm-tkw@WSGR.COM](mailto:adm-tkw@WSGR.COM) on PORT 5986 TO w10-adm-tkw  
EXEC (via pipeline wrapper)  
ok: [w10-adm-tkw] =\> {  
“changed”: false,  
“checksum\_dest”: “a6a1ffd84082aa327c40c17171c98027124418f7”,  
“checksum\_src”: “a6a1ffd84082aa327c40c17171c98027124418f7”,  
“dest”: “c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe”,  
“elapsed”: 2.0483192999999997,  
“invocation”: {  
“module\_args”: {  
“checksum”: null,  
“checksum\_algorithm”: “sha1”,  
“checksum\_url”: null,  
“client\_cert”: null,  
“client\_cert\_password”: null,  
“dest”: “c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe”,  
“follow\_redirects”: “safe”,  
“force”: true,  
“force\_basic\_auth”: false,  
“headers”: null,  
“http\_agent”: “ansible-httpget”,  
“maximum\_redirection”: 50,  
“method”: null,  
“proxy\_password”: null,  
“proxy\_url”: null,  
“proxy\_use\_default\_credential”: false,  
“proxy\_username”: null,  
“timeout”: 30,  
“url”: “[https://packages.vmware.com/tools/esx/latest/windows/x64/VMware-tools-11.0.5-15389592-x86\_64.exe](https://packages.vmware.com/tools/esx/latest/windows/x64/VMware-tools-11.0.5-15389592-x86_64.exe)”,  
“url\_password”: null,  
“url\_username”: null,  
“use\_default\_credential”: false,  
“use\_proxy”: true,  
“validate\_certs”: true  
}  
},  
“msg”: “OK”,  
“size”: 96612272,  
“status\_code”: 200,  
“url”: “[https://packages.vmware.com/tools/esx/latest/windows/x64/VMware-tools-11.0.5-15389592-x86\_64.exe](https://packages.vmware.com/tools/esx/latest/windows/x64/VMware-tools-11.0.5-15389592-x86_64.exe)”  
}

TASK [Install Vmware tools Silent] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/windows/download.yml:15  
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win\_package.ps1  
Pipelining is enabled.  
 ESTABLISH WINRM CONNECTION FOR USER: adm-tkw@xxxxxx on PORT 5986 TO w10-adm-tkw  
EXEC (via pipeline wrapper)  
ok: [w10-adm-tkw] =\> {  
“changed”: false,  
“reboot\_required”: false  
}  
META: ran handlers  
META: ran handlers

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
w10-adm-tkw : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

why is ansible seeing the destination as :

“dest”: “c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe”,

it should be "c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [May 26, 2020, 10:33pm UTC](https://forum.ansible.com/t/vm-mount-iso-and-install-vmware-tools/32972/16 "2020-05-26T22:33:39Z")

</div>

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 /usr/lib/python2.7/dist-packages/ansible/modules/windows/win\_command.ps1  
Pipelining is enabled.  
 ESTABLISH WINRM CONNECTION FOR USER: [adm-tkw@WSGR.COM](mailto:adm-tkw@WSGR.COM) on PORT 5986 TO w10-adm-tkw  
EXEC (via pipeline wrapper)  
fatal: [w10-adm-tkw]: FAILED! =\> {  
“changed”: true,  
“cmd”: “c:\temp\VMware-tools-11.0.5-15389592-x86\_64.exe /S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"”,  
“delta”: “0:01:07.028344”,  
“end”: “2020-05-26 10:31:06.576186”,  
“msg”: “non-zero return code”,  
“rc”: 3010,  
“start”: “2020-05-26 10:29:59.547842”,  
“stderr”: “”,  
“stderr\_lines”: ,  
“stdout”: “”,  
“stdout\_lines”:   
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
w10-adm-tkw : ok=3 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

what is wrong?
