1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00
ansible_role_ntp/README.md

63 lines
2.8 KiB
Markdown
Raw Normal View History

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
# 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))*
## Testing
This role is using some github actions for testing. Because systemd operations inside docker containers do not work verry well only linting is tested.
If you have a idea how to improve the testing please leave a comment, create a issue or even better open a pull request.
We use these actions for testing:
| Status | Marketplace |
| ------ | ----------- |
| [![Ansible Lint check](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/ansible-linting-check.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/ansible-linting-check.yml) | [ansible-lint](https://github.com/marketplace/actions/ansible-lint) |
| [![Yamllint GitHub Actions](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/yamllint.yaml/badge.svg)](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/yamllint.yaml) | [yamllint-github-action](https://github.com/marketplace/actions/yamllint-github-action) |
| [![Galaxy release](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/galaxy.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/galaxy.yml) | [publish-ansible-role-to-galaxy](https://github.com/marketplace/actions/publish-ansible-role-to-galaxy)