vt.common/network-time¶
Sets the host timezone and enables NTP.
Note: NTP is not enabled for virtualized guests, as the system clock should be managed and synchronized by the hypervision host.
See:
How to correctly sync time in linux running as virtual guest after host resumes from hibernation?
Ubuntu inside virtual machine: ntpd or ntpdate or ??? to avoid clock drift
Role variables¶
List of default variables available in the inventory:
---
# Host timezone
ntp_timezone: Europe/Paris
# Primary NTP servers
ntp_servers:
- 0.fr.pool.ntp.org
- 1.fr.pool.ntp.org
- 2.fr.pool.ntp.org
- 3.fr.pool.ntp.org
# Fallback NTP servers
ntp_fallback_servers:
- ntp.ubuntu.org
- 0.pool.ntp.org
- 1.pool.ntp.org