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/

Regards,


JYL


Le 26/05/2020 à 22:46, Tony Wong a écrit :
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 <[email protected] <mailto:[email protected]>> wrote:

    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: 'Salt-Minion-3000-Py3-AMD64-Setup.exe /S
    /master={{ master }} /minion-name={{ minion }}'
              state: present

-- 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]
    <mailto:[email protected]>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/ansible-project/8a1c6358-a435-4069-9c3c-a3fbdc738e4c%40googlegroups.com
    
<https://groups.google.com/d/msgid/ansible-project/8a1c6358-a435-4069-9c3c-a3fbdc738e4c%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkqU4_KHjM%2B5Y9_XZWNLVGcL-wKHfnhPHXAxmWG7kqyS3Q%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CALmkhkqU4_KHjM%2B5Y9_XZWNLVGcL-wKHfnhPHXAxmWG7kqyS3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
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/6c088b60-9c8c-dcbd-79e9-416e60c12928%40lenhof.eu.org.

Reply via email to