Skip to content

Ansible role to set timezone and configure systemd-timesyncd

License

Notifications You must be signed in to change notification settings

dschanoeh/systemd-timesyncd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systemd-timesyncd

This role sets the timezone and configures and enables systemd-timesyncd.

Requirements

systemd with timesyncd compiled in

Role Variables

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_rtc_set auto Determines if the RTC will be updated. auto will only update if the RTC exists
timesync_rtc_dev /dev/rtc The RTC device to be used

Dependencies

None

Example Playbook

- hosts: all
  roles:
  - systemd-timesyncd
    timesync_timezone: Europe/Berlin
    timesync_ntp_hosts:
      - some.ntp.host
      - another.ntp.host

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Author Information

About

Ansible role to set timezone and configure systemd-timesyncd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published