https://github.com/wireapp/ansible-ntp-verify
https://github.com/wireapp/ansible-ntp-verify
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wireapp/ansible-ntp-verify
- Owner: wireapp
- License: agpl-3.0
- Created: 2020-03-20T12:59:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T08:47:26.000Z (over 1 year ago)
- Last Synced: 2025-10-12T09:59:12.321Z (8 months ago)
- Size: 15.6 KB
- Stars: 2
- Watchers: 16
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
## ansible-ntp-verify
Ansible role to verify the correct setup of an NTP daemon on your hosts.
NTP is often misconfigured (or difficult to verify) on many hosts where it runs. This role is an attempt to solve that problem by making a few simple but effective tests. Mainly, it ensures that:
- NTP daemon is running and is able to connect to some NTP server
- That the hosts running the NTP have only a time difference of `allowed_time_diff_in_ms`
**Status: alpha**, see [TODOs](#todo)
* [Ansible Requirements](#ansible-requirements)
* [Role Variables](#role-variables)
* [Dependencies](#dependencies)
* [Platforms](#platforms)
* [Example Playbook](#example-playbook)
* [License](#license)
* [Development setup](#development-setup)
* [TODO](#todo)
## Ansible Requirements
- ansible >= 2.2 (>= 2.7.9 recommended)
## Role Variables
You _may_ override `allowed_time_diff_in_ms` if that seems useful for your configuration. 100 miliseconds is already quite high though and we suggest to keep this value below that.
```yaml
allowed_time_diff_between_servers_in_ms: 100
```
For a full list of all variables, see `defaults/main.yml`.
## Dependencies
The following should be installed before successfully running this role:
- ntp
## Platforms
- Currently tested with ubuntu 16.04 only
## Example Playbook
Assuming an inventory with 3 nodes where you wish to run this on:
```ini
# hosts.ini
[all]
host01 ansible_host=
host02 ansible_host=
host03 ansible_host=
```
## License
AGPL. See [LICENSE](LICENSE)
## Development setup
Ansible is the only dependency required to run this role.
## TODO
* [ ] easier testing with molecule
* [ ] integration with travis