2021-09-27 00:14:59 +02:00
[![Ansible Galaxy ](https://raw.githubusercontent.com/roles-ansible/ansible_role_ntp/main/.github/galaxy.svg?sanitize=true )](https://galaxy.ansible.com/do1jlr/ntp) [![MIT License ](https://raw.githubusercontent.com/roles-ansible/ansible_role_ntp/main/.github/license.svg?sanitize=true )](https://github.com/roles-ansible/ansible_role_ntp/blob/main/LICENSE)
2018-12-28 10:49:24 +01:00
2021-09-27 00:14:59 +02:00
Ansible role ntp
======================
2019-05-17 16:35:30 +02:00
2021-09-27 00:14:59 +02:00
Ansible role to install and configure the Network Time Protocol (NTP) Daemon.
2018-12-28 10:49:24 +01:00
2021-09-27 00:14:59 +02:00
This role was built with support for a variety of operating systems. Including Debian/Ubuntu, RHEL, Suse and Archlinux based Linux versions as well as FreeBSD, Darwin and OpenBSD.
2019-05-17 16:35:30 +02:00
2018-12-28 11:54:06 +01:00
## Role Variables
2018-12-28 10:49:24 +01:00
2021-09-27 00:14:59 +02:00
In addition to the operating system-dependent variables, there are the following default values to adjust:
2018-12-28 10:49:24 +01:00
2018-12-28 11:54:06 +01:00
```yaml
---
# defaults file for ansible-role-ntp
2018-12-28 10:49:24 +01:00
2018-12-28 15:27:57 +01:00
# Restrict acces on ntp server
# Default is: ::1, 127.0.0.1
ntp_restrict:
- default nomodify notrap nopeer noquery
- 127.0.0.1
- ::1
# Ntp server to use for date synchronization
# Default is worldwide pool
ntp_servers:
2021-09-27 00:14:59 +02:00
- ptbtime1.ptb.de
- ptbtime3.ptb.de
2018-12-28 15:27:57 +01:00
- 0.pool.ntp.org iburst
- 1.pool.ntp.org iburst
- 2.pool.ntp.org iburst
- 3.pool.ntp.org iburst
2022-11-17 00:02:19 +01:00
# optionally set timezone
ntp_set_time_zone: false
ntp_timezone: 'Europe/Berlin'
2018-12-28 15:27:57 +01:00
# Enable or disable ntp statistics
ntp_statistics: false
2021-09-27 00:14:59 +02:00
# version check for this playbook (true is recomended)
submodules_versioncheck: false
2018-12-28 11:54:06 +01:00
```
2018-12-28 10:49:24 +01:00
2018-12-28 11:54:06 +01:00
## Resources
[ntp on ubuntu ](https://doc.ubuntu-fr.org/ntp )
## Author Information
This role was created in 2018 by diodonfrost.
2021-03-19 19:21:29 +01:00
This role was updated and maintained since 2019 by L3D *([DO1JLR](https://github.com/do1jlr))*
2022-11-17 00:02:19 +01:00
## Contribution
Pleas feel free to open a issue or *(even better)* create a Pull Request if there is a problem or you missing a feature or something like that.