sgaduuw.timesyncd

Ansible Role: timesyncd

This is an Ansible role for managing systemd-timesyncd, which is the built-in NTP (Network Time Protocol) client in systemd.

Requirements

None.

Role Variables and Their Defaults

Here are the variables you can use in this role along with their default values:

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: []

The default value for ntp_servers_fallback is an empty list. If you want to add fallback NTP servers, create a list like this:

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

Dependencies

None.

Example Playbook

Here is an example of how to use this role in a playbook:

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

License

MIT License

Author Information

This role was created by Eelco Wesemann (Sgaduuw) in 2020.

Informazioni sul progetto

Manage systemd-timesyncd

Installa
ansible-galaxy install sgaduuw.timesyncd
Licenza
mit
Download
2.3k
Proprietario