sgaduuw.timesyncd

Ansible角色:timesyncd

一个用于管理systemd-timesyncd的Ansible角色,这是systemd内置的NTP客户端。

要求

无。

角色变量及其默认值

此角色中使用的变量及其示例默认值:

ntp_timezone: Etc/UTC
ntp_servers:
  - 0.pool.ntp.org
  - 1.pool.ntp.org
  - 2.pool.ntp.org
  - 3.pool.ntp.org
ntp_servers_fallback: []

ntp_servers_fallback的默认值是一个空列表。要使用备用NTP服务器,只需创建一个服务器列表,例如:

ntp_servers_fallback:
  - time1.google.com
  - time2.google.com
  - time3.google.com
  - time4.google.com

依赖关系

无。

示例剧本

- hosts: all
  roles:
     - { role: sgaduuw.timesyncd, ntp_servers: [ '0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org' ] }

许可证

MIT

作者信息

创建者:Eelco Wesemann (Sgaduuw),2020年

关于项目

Manage systemd-timesyncd

安装
ansible-galaxy install sgaduuw.timesyncd
许可证
mit
下载
2.3k
拥有者