engonzal.chrony

chrony

Installs and configures chrony on RHEL/CentOS or Debian/Ubuntu servers.

Build Status

Requirements

Note that this role requires root. Ensure become: yes is set at the top level of your playbook or invoke the role in your playbook like:

- hosts: chrony
  roles:
    - role: engonzal.chrony
      become: yes

Role Variables

Available variable with examples are below:

chrony_servers:
  - time.cloudflare.com iburst prefer port 1514
chrony_pools:
  - ntp.ubuntu.com        iburst maxsources 2

You can specify custom servers and pools, by default the role uses the ubuntu and cloudflare pools.

chrony_measurements_statistics_tracking: false
chrony_disable_external_client: true

You can also enable some enhanced logging, and allow your chrony daemon to accept incoming ntp connections (disable for security).

Example Playbook

Simple Example (defaults)

- hosts: servers
  roles:
      - { role: engonzal.chrony }

Advanced Example (custom server)

- hosts: servers
  vars:
    chrony_servers:
      # Custom time server with different port
      - time.example.com iburst prefer port 1514
      # Regular time server
      - time.cloudflare.com iburst prefer
  roles:
      - { role: engonzal.chrony }

License

BSD

Author Information

This role was created in 2019 by Noe Gonzalez (http://engonzal.com and https://buildahomelab.com)

About

Provision the chrony ntp client and specify custom ntp servers

Install
ansible-galaxy install engonzal.chrony
GitHub repository
License
bsd-3-clause
Downloads
86
Owner
I'm a Linux engineer. Verifications - https://defcon.social/@engonzal