[ansible-project] ansible updating vmware tools on windows vms

2020-04-12 Thread David Foley
Trythe following code,
I am because the tools moulde is looking for a UUID of the Machine I'm first 
doing a Gather_facts on that machine inorder to get the UUID then importing 
that as a variable in the next task


:---
- name: Running VMTools Playbook
  hosts: localhost
  gather_facts: false
  connection: local
  tasks:
  - name: Get Virtual Machine info
vmware_guest_info:
  validate_certs: no
  hostname: "{{ vcenter_hostname }}"
  username: "{{ user }}"
  password:  "{{ pass }}"
  validate_certs: no
  datacenter: "{{ datacenter_name }}"
  name: "{{ VM_Name }}"
  schema: "vsphere"
  properties:
delegate_to: localhost
register: vminfo

  - name: Updating VM Tools
vmware_guest_tools_upgrade:
  validate_certs: no
  hostname: "{{ vcenter_hostname }}"
  username: "{{ user }}"
  password: "{{ pass }}"
  datacenter: "{{ datacenter_name }}"
  uuid: "{{ vminfo.instance.config.uuid }}"
delegate_to: localhost

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/39e0a881-62e9-463c-94f8-0b5e67e2031e%40googlegroups.com.


[ansible-project] ansible updating vmware tools on windows vms

2020-04-12 Thread Tony Wong
does anyone have a playbook or how do i get started with a playbook 
updating vmwasr tools on windows guests?

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bacec8a0-f1ae-4194-832b-4f86334c26ef%40googlegroups.com.