Skip to content

Can't enable vmtools timesync #1330

Open
@rkbennett

Description

@rkbennett
SUMMARY

When attempting to set the tools.timeSync value for enabling vmware tools time synchronization changes are never actually made
When using the vmware_guest module placing the configuration in advanced_settings makes no change:

advanced_settings:
  - key: tools.syncTime
    value: 'TRUE'

I've also tried adding it under customvalue, which causes the task to fail from an unknown key

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.vmware.vmware_guest

ANSIBLE VERSION
ansible [core 2.12.1]
  config file = None
  configured module search path = ['/home/pcte_admin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  ansible collection location = /home/pcte_admin/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
  jinja version = 2.10.1
  libyaml = True
COLLECTION VERSION
Collection       Version
---------------- -------
community.vmware 1.17.0

# /usr/local/lib/python3.8/dist-packages/ansible_collections
Collection       Version
---------------- -------
community.vmware 1.17.0
CONFIGURATION
OS / ENVIRONMENT

Kubernetes 1.20

STEPS TO REPRODUCE
- name: Adjust resources
  community.vmware.vmware_guest:
    hostname: "{{ VMWARE_HOST }}"
    username: "{{ VMWARE_USER }}"
    password: "{{ VMWARE_PASSWORD }}"
    validate_certs: False
    folder: "{{ vc_datacenter }}/vm/{{ folder }}"
    cluster: "{{ vc_cluster }}"
    datacenter: "{{ vc_datacenter }}"
    name: "{{ vm_prefix.stdout }}-{{ control_machine }}-{{ item.item | string }}"
    state: "present"
    hardware:
      memory_mb: "{{ control_memory }}"
      num_cpus: "{{ control_cpu }}"
    advanced_settings:
      - key: tools.syncTime
        value: 'TRUE'
    disk:
      - size_gb: 50

EXPECTED RESULTS

vmtools timesync gets enabled

ACTUAL RESULTS

vmtools time sync remains disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bugneeds_triageNeeds a first human triage before being processed.python3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions