stuvusIT.systemd-timesyncd

systemd-timesyncd

此角色设置时区并配置和启用systemd-timesyncd。

要求

systemd

角色变量

名称 默认值/必需 描述
timesync_timezone Etc/UTC 要设置的时区(相对于/usr/share/zoneinfo
timesync_ntp_hosts NTP主机数组
timesync_fallback_ntp_hosts {0..3}.pool.ntp.org 后备NTP主机数组
timesync_write_hwclock_on_change True 更改配置后是否将时间写入硬件时钟。

依赖关系

示例剧本

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

许可证

本作品采用 创意共享署名-相同方式分享 4.0 国际版许可证 进行许可。

作者信息

关于项目

Set timezone and configure systemd-timesyncd

安装
ansible-galaxy install stuvusIT.systemd-timesyncd
许可证
other
下载
184.5k
拥有者
stuvus IT Team - Studierendenvertretung Universität Stuttgart