Ansible role for manage ntp on a large number of os
Go to file
L3D ee881e6b0a
Merge pull request #7 from roles-ansible/v
rename some internal variables
2023-05-19 15:59:23 +02:00
.github update ansible role namespace 2023-04-20 23:11:57 +02:00
defaults Optionally set timezone 2022-11-16 23:48:04 +01:00
handlers update ansible to use FQCN at more places 2021-09-26 23:17:54 +02:00
meta update ansible role namespace 2023-04-20 23:11:57 +02:00
tasks rename some internal variables 2023-05-19 15:57:59 +02:00
templates improve ntp readme 2022-11-17 00:02:19 +01:00
vars rename some internal variables 2023-05-19 15:57:59 +02:00
.gitignore use modern ansible name scheme and remove travis 2021-03-12 13:20:58 +01:00
.yamllint add testing and improve linting 2021-03-12 13:26:34 +01:00
LICENSE Remove trailing whitespaces from LICENSE 2021-09-27 00:15:43 +02:00 update ansible role namespace 2023-04-20 23:11:57 +02:00

Ansible Galaxy BSD-3 Clause Maintainance

Ansible role ntp

Ansible role to install and configure the Network Time Protocol (NTP) Daemon.

This role was built with support for a variety of operating systems. Including Debian/Ubuntu, RHEL, Suse and Archlinux based Linux versions as well as FreeBSD, Darwin and OpenBSD.

Role Variables

In addition to the operating system-dependent variables, there are the following default values to adjust:

# defaults file for ansible-role-ntp

# Restrict acces on ntp server
# Default is: ::1,
  - default nomodify notrap nopeer noquery
  - ::1

# Ntp server to use for date synchronization
# Default is worldwide pool
  - iburst
  - iburst
  - iburst
  - iburst

# optionally set timezone
ntp_set_time_zone: false
ntp_timezone: 'Europe/Berlin'

# Enable or disable ntp statistics
ntp_statistics: false

# version check for this playbook (true is recomended)
submodules_versioncheck: false

Example Usage

Getting this Role

You can install this role using ansible Galaxy:

ansible-galaxy install l3d.ntp

Or download or clone this git repo. Example:

git clone l3d.ntp

Using this role in a Playbook

- name: Install and Configure NTP
    - {role: l3d.ntp, tags: ntp}
    submodules_versioncheck: true
    ntp_set_time_zone: true
    ntp_timezone: Zulu
    # In this example, we enabled optional version check
    # and set timezone to Zulu.


ntp on ubuntu

Author Information

  • This role was created in 2018 by diodonfrost.
  • This role was updated and maintained since 2019 by L3D (DO1JLR)
  • In 2023 this role moved from do1jlr.ntp to l3d.ntp Namespace.


Pleas feel free to open a issue or (even better) create a Pull Request if there is a problem or you missing a feature or something like that.