mirror of
https://github.com/de-it-krachten/ansible-role-chrony
synced 2026-05-14 03:31:50 +00:00
No description
- Jinja 100%
# [1.11.0](https://github.com/de-it-krachten/ansible-role-chrony/compare/v1.10.0...v1.11.0) (2026-04-03) ### Features * Added support for Ubuntu 26.04 LTS ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| handlers | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-chrony
Install/configure chrony for time synchronization
Dependencies
Roles
None
Collections
None
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- OracleLinux 10
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Ubuntu 26.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Chrony configuration template
chrony_conf_template: chrony.conf.j2
# Should a backup be made of the current configuration before changing it
chrony_conf_backup: false
# NTP servers to connect to
chrony_servers:
- 0.nl.pool.ntp.org
- 1.nl.pool.ntp.org
- 2.nl.pool.ntp.org
- 3.nl.pool.ntp.org
# Chrony makestep arguments
chrony_makestep: '10 3'
defaults/family-Alpine.yml
# Chrony main configuration file
chrony_conf: /etc/chrony/chrony.conf
# Chrony keys
chrony_keyfile: /etc/chrony/chrony.keys
# List of packages
chrony_packages:
- chrony
# Name of the service
chrony_service: chronyd
defaults/family-Debian.yml
# Chrony main configuration file
chrony_conf: /etc/chrony/chrony.conf
# Chrony keys
chrony_keyfile: /etc/chrony/chrony.keys
# List of packages
chrony_packages:
- chrony
# Name of the service
chrony_service: chrony
defaults/family-RedHat.yml
# Chrony main configuration file
chrony_conf: /etc/chrony.conf
# Chrony keys
chrony_keyfile: /etc/chrony.keys
# List of packages
chrony_packages:
- chrony
# Name of the service
chrony_service: chronyd
defaults/family-Suse.yml
# Chrony main configuration file
chrony_conf: /etc/chrony.conf
# Chrony keys
chrony_keyfile: /etc/chrony.keys
# List of packages
chrony_packages:
- chrony
# Name of the service
chrony_service: chronyd
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'chrony'
hosts: all
become: 'yes'
tasks:
- name: Include role 'chrony'
ansible.builtin.include_role:
name: chrony