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 国際のもとでライセンスされています。