Does command work locally? If can then you may try to create a bat file then trigger it instead?

Thanks and Best Regards,

Thanh.

On 11 Mar 2023, at 07:29, Will McDonald <[email protected]> wrote:


It's hard to tell from the mail formatted commands but thoughts off the top of my head:

1. /S /v"/qn looks like it might need an additional space: /v "/qn
2. Have you tried to register the output of the task and then subsequently inspect that? If so... what's the output?
3. Have you tried using the argv parameter to see if that helps C:\VMware-tools-12.1.5-20735119-x86_64.exe parse its arguments more cleanly?
4. If you drop that heavily quoted command line into a powershell or batch/command instead and copy then call it... what happens? (Purely from a debug/problem reduction perspective?


On Fri, 10 Mar 2023 at 23:11, Shay Cohen <[email protected]> wrote:

.I am trying to install a vmare tools on windows machine but noting happen
I manage to copy the file but when I am trying to install I don't see any error or installation running in the background.

---
- hosts: all
  tasks:
    - name: Copy a single file vmare-tools
      ansible.windows.win_copy:
        src: /etc/ansible/roles/vmware_tools/files/VMware-tools-12.1.5-20735119-x86_64.exe
        dest: C:\VMware-tools-12.1.5-20735119-x86_64.exe
    - name: Install vmware tools
      ansible.windows.win_command: '"C:\VMware-tools-12.1.5-20735119-x86_64.exe" /S /v"/qn REBOOT=R ADDLOCAL=ALL REMOVE=AppDefense,FileIntrospection,NetworkIntrospection,Hgfs" /ru SYSTEM /rl HIGHEST /l C:\VMwareToolsInstall.log'

--
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/38f6a909-538a-4848-997d-163b94c238aan%40googlegroups.com.

--
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/CAKtKohRHFtszNSkE5i5frMkP8z1yhD_qyD9ZU_fOatzbjuAoNg%40mail.gmail.com.

--
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/7431A3FB-483F-4A99-B732-B828D01ABF3D%40gmail.com.

Reply via email to