I already tried the arguments. I know /s /v /qn works manually.
why does that work on ansible?
---
- 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.0.5-15389592-x86_64.exe
dest: c:\temp\VMware-tools-11.0.5-15389592-x86_64.exe
- name: Install Vmware tools Silent
win_package:
path: 'c:\temp\VMware-tools-11.0.5-15389592-x86_64.exe'
product_id: '{01767101-A688-4A95-9C83-6DED9EB6735D}'
arguments: '/s /v /qn'
state: present
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
On Tue, May 26, 2020 at 2:19 PM Jean-Yves LENHOF <[email protected]>
wrote:
> 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]> 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].
>> 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].
> 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
> <https://groups.google.com/d/msgid/ansible-project/6c088b60-9c8c-dcbd-79e9-416e60c12928%40lenhof.eu.org?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/CALmkhkp7cEhMHsWQ8t6ds%3DOpOW7CN%2BjiCXrMiHGu8wMfw7sFNw%40mail.gmail.com.