any idea ? On Monday, July 6, 2020 at 8:21:15 AM UTC-7 [email protected] wrote:
> I got following to update vmware tools on windows vm > > --- > - 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 > win_get_url: > url: > https://packages.vmware.com/tools/esx/latest/windows/x64/VMware-tools-11.1.0-16036546-x86_64.exe > dest: C:\temp\VMware-tools-11.1.0-16036546-x86_64.exe > > - name: Install Vmware tools Silent > win_command: C:\temp\VMware-tools-11.1.0-16036546-x86_64.exe /S /v > "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs" > > > it updates the tools successfully but not sure why its giving a failed > status error > > 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. > <rw-ctxapp-02.xxx.xxx> ESTABLISH WINRM CONNECTION FOR USER: [email protected] > on PORT 5986 TO rw-ctxapp-02.xxx.xxx > EXEC (via pipeline wrapper) > fatal: [rw-ctxapp-02.xxx.xxx]: FAILED! => { > "changed": true, > "cmd": "C:\\temp\\VMware-tools-11.1.0-16036546-x86_64.exe /S /v \"/qn > REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs\"", > "delta": "0:02:31.265796", > "end": "2020-07-06 03:17:27.895492", > "msg": "non-zero return code", > "rc": 3010, > "start": "2020-07-06 03:14:56.629695", > "stderr": "", > "stderr_lines": [], > "stdout": "", > "stdout_lines": [] > } > > PLAY RECAP > *************************************************************************************************************************************************************************************************************************** > rw-ctxapp-02.xxx.xxx : ok=3 changed=1 unreachable=0 failed=1 > skipped=0 rescued=0 ignored=0 > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5696856d-8dfd-47e7-9416-ce62604a5d58n%40googlegroups.com.
