ypsman.timedatectl
ansible timedatectl
SystemdタイムデートctlのNTP設定を行います。 Ubuntu 16.04/18.04、Debian 8/9、CentOS7でテスト済みです。 システムでsystemdが使用されていない場合、この役割はスキップされます。
例のプレイブック
- hosts: all
roles:
- role: ypsman.timedatectl
timedatectl_timeservers:
- 0.debian.pool.ntp.org
- 1.debian.pool.ntp.org
timedatectl_timeservers_fallback:
- 2.debian.pool.ntp.org
- 3.debian.pool.ntp.org
timedatectl_timezone: Europe/Berlin