Ansilbe role sets the timezone and configures and enables systemd-timesyncd.
Based on role stuvusit.systemd-timesyncd
OS:
- debian:
- 10
- 11
- ubuntu:
- 20.04
- 22.04
Name | Default/Required | Description |
---|---|---|
timesync_timezone |
Etc/UTC |
Timezone to set (relative to /usr/share/zoneinfo ) |
timesync_ntp_hosts |
Array of NTP hosts | |
timesync_fallback_ntp_hosts |
{0..3}.pool.ntp.org |
Array of fallback NTP hosts |
timesync_write_hwclock_on_change |
false |
Whether to write the time to the hardware clock after changing the configuration. |
None
- hosts: all
roles:
- wf72.systemd_timesyncd
timesync_timezone: Europe/Moscow
timesync_ntp_hosts:
- some.ntp.host
- another.ntp.host
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.