installing/upgrading vmwasre tools windows

637 views
Skip to first unread message

Tony Wong

unread,
Aug 11, 2020, 11:28:52 AM8/11/20
to ansible...@googlegroups.com
can someone help me improve this playbook. downloading the executable for each vm is not what i want to do

---
- 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.1-16303738-x86_64.exe
        dest: C:\temp\VMware-tools-11.1.1-16303738-x86_64.exe

    - name: Install Vmware tools Silent
      win_command: C:\temp\VMware-tools-11.1.1-16303738-x86_64.exe /S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"

Dick Visser

unread,
Aug 11, 2020, 12:25:16 PM8/11/20
to ansible...@googlegroups.com
On Tue, 11 Aug 2020 at 17:28, Tony Wong <tdub...@gmail.com> wrote:

> downloading the executable for each vm is not what i want to do

Best to be less ambiguous and just say what you DO want.

Continuing assuming/guessing, you probably want to download the binary
to the controller node once (using get_url), then copy it to each node
(using copy module).

--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

david...@mycit.ie

unread,
Aug 11, 2020, 2:42:00 PM8/11/20
to Ansible Project
It's best practice to, use Update manager within vSphere, Set install vmtools on next reboot on the Machines, you can use Powershell for that, 
Not sure why you want to use Ansible for This. 

Gajendra Gaikwad

unread,
Sep 4, 2020, 12:30:03 AM9/4/20
to ansible...@googlegroups.com
As dick said,.same process I am doing it in my environment.
 I have downloaded the VMware tool on control node, and whenever  required I copy from control machine  to target node using win_copy module.

Regards,
Gg

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNjzNaS282E38ZaTAJSLb6cYiuESXDgczKn0vFDEC642Q%40mail.gmail.com.

daeme...@gmail.com

unread,
Sep 5, 2020, 4:09:29 AM9/5/20
to Ansible Project
You can also use:


Op vrijdag 4 september 2020 om 06:30:03 UTC+2 schreef gajendra....@gmail.com:
Reply all
Reply to author
Forward
0 new messages