2022-04-10 17:41:48 +02:00
---
title: chrony
type: docs
---
2022-06-20 22:45:20 +02:00
[![Source Code ](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white )](https://gitea.rknet.org/ansible/xoxys.chrony) [![Build Status ](https://img.shields.io/drone/build/ansible/xoxys.chrony?logo=drone&server=https%3A%2F%2Fdrone.rknet.org )](https://drone.rknet.org/ansible/xoxys.chrony) [![License: MIT ](https://img.shields.io/badge/license-MIT-blue.svg )](https://gitea.rknet.org/ansible/xoxys.chrony/src/branch/main/LICENSE)
2022-04-10 17:41:48 +02:00
Setup chrony NTP.
2022-06-20 22:45:20 +02:00
<!-- more -->
2022-04-10 17:41:48 +02:00
- [Default Variables ](#default-variables )
- [chrony_allow ](#chrony_allow )
- [chrony_log ](#chrony_log )
2022-09-12 21:39:05 +02:00
- [chrony_logdir ](#chrony_logdir )
- [chrony_ntsdumpdir ](#chrony_ntsdumpdir )
- [chrony_pool ](#chrony_pool )
2022-09-18 23:30:27 +02:00
- [chrony_port ](#chrony_port )
2022-04-10 17:41:48 +02:00
- [chrony_server ](#chrony_server )
- [Dependencies ](#dependencies )
---
## Default Variables
### chrony_allow
#### Default value
```YAML
chrony_allow: []
```
### chrony_log
#### Default value
```YAML
2022-09-12 21:39:05 +02:00
chrony_log:
- measurements
- statistics
- tracking
2022-04-10 17:41:48 +02:00
```
2022-09-12 21:39:05 +02:00
### chrony_logdir
2022-04-10 17:41:48 +02:00
#### Default value
```YAML
2022-09-12 21:39:05 +02:00
chrony_logdir: /var/log/chrony
2022-04-10 17:41:48 +02:00
```
2022-09-12 21:39:05 +02:00
### chrony_ntsdumpdir
2022-04-10 17:41:48 +02:00
#### Default value
```YAML
2022-09-12 21:39:05 +02:00
chrony_ntsdumpdir: /var/lib/chrony
2022-04-10 17:41:48 +02:00
```
2022-09-12 21:39:05 +02:00
### chrony_pool
2022-04-10 17:41:48 +02:00
#### Default value
```YAML
2022-09-12 21:39:05 +02:00
chrony_pool: 2.pool.ntp.org iburst
2022-04-10 17:41:48 +02:00
```
2022-09-18 23:30:27 +02:00
### chrony_port
The port option can be set to 0 to make chrony daemon to never open any listening port for server operation and to operate strictly in a client-only mode.
#### Default value
```YAML
chrony_port: 0
```
2022-04-10 17:41:48 +02:00
### chrony_server
#### Default value
```YAML
2022-09-12 21:39:05 +02:00
chrony_server: []
2022-04-10 17:41:48 +02:00
```
## Dependencies
None.