vmware tools update.completed but shows failed status

32 views
Skip to first unread message

Tony Wong

unread,
Jul 6, 2020, 11:21:15 AM7/6/20
to ansible...@googlegroups.com
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: adm...@xxx.xxx 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

tdub...@gmail.com

unread,
Jul 7, 2020, 11:33:56 AM7/7/20
to Ansible Project
any idea ?
Reply all
Reply to author
Forward
0 new messages