engonzal.chrony
chrony
This tool installs and configures chrony on RHEL/CentOS or Debian/Ubuntu servers.
Requirements
To use this tool, you need root access. Make sure to include become: yes
at the top of your playbook. You can also call the role in your playbook like this:
- hosts: chrony
roles:
- role: engonzal.chrony
become: yes
Role Variables
Here are some available variables with examples:
chrony_servers:
- time.cloudflare.com iburst prefer port 1514
chrony_pools:
- ntp.ubuntu.com iburst maxsources 2
You can customize the servers and pools. By default, it uses the Ubuntu and Cloudflare pools.
chrony_measurements_statistics_tracking: false
chrony_disable_external_client: true
You can also enable extra logging and let your chrony daemon accept incoming NTP connections (it’s safer to disable this).
Example Playbook
Simple Example (defaults)
- hosts: servers
roles:
- { role: engonzal.chrony }
Advanced Example (custom server)
- hosts: servers
vars:
chrony_servers:
# Custom time server with a different port
- time.example.com iburst prefer port 1514
# Normal time server
- time.cloudflare.com iburst prefer
roles:
- { role: engonzal.chrony }
License
BSD
Author Information
This role was created in 2019 by Noe Gonzalez (visit http://engonzal.com and https://buildahomelab.com)
Informazioni sul progetto
Provision the chrony ntp client and specify custom ntp servers
Installa
ansible-galaxy install engonzal.chrony
Licenza
bsd-3-clause
Download
86
Proprietario
I'm a Linux engineer.
Verifications
- https://defcon.social/@engonzal