Get the NTP configuration status
Version added: 2.0.0
- Get the NTP configuration status. If you run the 'timesync.get' command, you can retrieve the current time synchronization method (NTP- or VMware Tools-based). The 'ntp' command always returns the NTP server information, even when the time synchronization mode is not set to NTP. If the time synchronization mode is not NTP-based, the NTP server status is displayed as down.
The below requirements are needed on the host that executes this module.
- vSphere 7.0.3 or greater
- python >= 3.6
- aiohttp
Note
- Tested on vSphere 7.0.3
- name: Get the NTP configuration
vmware.vmware_rest.appliance_ntp_info:
- name: Get the NTP configuration
vmware.vmware_rest.appliance_ntp_info:
register: result
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
value
list
|
On success |
Get the NTP configuration
Sample:
['time.nist.gov']
|
- Ansible Cloud Team (@ansible-collections)