Skip to content

znz/ansible-role-timesyncd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role for systemd-timesyncd

  • Setup /etc/systemd/timesyncd.conf
  • Run timedatectl set-ntp true

Requirements

  • Debian
  • Ubuntu

Role Variables

Common

  • timesyncd_ntp_servers: NTP servers

Dependencies

None.

Example Playbook

Normal usage:

---
- hosts: all
  become: yes
  roles:
  - znz.timesyncd

With NTP servers:

---
- hosts: all
  become: yes
  roles:
  - { role: znz.timesyncd, timesyncd_ntp_servers: ['ntp.nict.jp', 'ntp.jst.mfeed.ad.jp'] }

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published