Skip to content
Ansible role to manage chrony.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
handlers
meta
molecule/default
tasks
templates
vars
.travis.yml
CONTRIBUTING.md
LICENSE
README.md

README.md

Ansible Role: chrony

Build Status

This Ansible role allows you to install chrony and manage its configuration.

For more information about chrony, please check the official project page.

Role variables

Variable name Description Default value
chrony_service_name Wether we should flush the current ruleset or not. chronyd
chrony_timezone Path to the configuration file. Etc/UTC
chrony_ntp_pools A list of NTP pools to use, with their options. [ 'pool.ntp.org iburst maxpoll 10' ]
chrony_ntp_servers   A list of NTP servers to use, with their options. []
chrony_config_file   Path to chrony configuration file. /etc/chrony.conf
chrony_config_logdir Path to chrony logs directory. /var/log/chrony
chrony_config_driftfile Path to chrony drift file. /var/lib/chrony/drift
chrony_makestep_threshold Limit (in sec) above which chrony will step the clock instead of slewing it. 1
chrony_makestep_limit Limit (in nb) above which chrony won't step the clock anymore, even if needed. 10
chrony_allow List of subnets allowed to access this computer as an NTP server. []
chrony_deny List of subnets NOT allowed to access this computer as an NTP server. []

📗 Documentation:

Example

Here is a small example of what your file should look like.

IMPORTANT: DO NOT use this example as it is.

---
chrony_service_name: chronyd
chrony_timezone: Europe/Paris
chrony_ntp_pools: []
chrony_ntp_servers:
  - 0.rhel.pool.ntp.org iburst maxpoll 10
  - 1.rhel.pool.ntp.org iburst maxpoll 10
  - 2.rhel.pool.ntp.org iburst maxpoll 10
  - 3.rhel.pool.ntp.org iburst maxpoll 10
chrony_config_file: /etc/chrony.conf
chrony_config_driftfile: /var/lib/chrony/drift
chrony_makestep_threshold: 5
chrony_makestep_limit: 3
chrony_allow:
  - 192.0.2.0/24
  - 192.0.2.200
chrony_deny:
  - 192.0.2.0/25
...

Contributing

Code reviews, patches, comments, bug reports and feature requests are welcome. Please read the Contributing Guide for further details.

You can’t perform that action at this time.