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 for manage ntp on a large number of os
Find a file
2022-11-16 23:48:04 +01:00
.github update github actions 2022-04-07 23:04:39 +02:00
defaults Optionally set timezone 2022-11-16 23:48:04 +01:00
handlers update ansible to use FQCN at more places 2021-09-26 23:17:54 +02:00
meta Update Linting 2022-11-16 23:34:46 +01:00
tasks Optionally set timezone 2022-11-16 23:48:04 +01:00
templates Update time 2019-06-05 15:38:18 +02:00
vars Optionally set timezone 2022-11-16 23:48:04 +01:00
.gitignore use modern ansible name scheme and remove travis 2021-03-12 13:20:58 +01:00
.yamllint add testing and improve linting 2021-03-12 13:26:34 +01:00
Gemfile add Gmefile and gitignore 2018-12-28 11:16:57 +01:00
LICENSE Remove trailing whitespaces from LICENSE 2021-09-27 00:15:43 +02:00
README.md update docs and METADATA 2021-09-27 00:14:59 +02:00

Ansible Galaxy MIT License

Ansible role ntp

Ansible role to install and configure the Network Time Protocol (NTP) Daemon.

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.

Role Variables

In addition to the operating system-dependent variables, there are the following default values to adjust:

---
# defaults file for ansible-role-ntp

# 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:
  - ptbtime1.ptb.de
  - ptbtime3.ptb.de
  - 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

# version check for this playbook (true is recomended)
submodules_versioncheck: false

Resources

ntp on ubuntu

Author Information

This role was created in 2018 by diodonfrost. This role was updated and maintained since 2019 by L3D (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 ansible-lint
Yamllint GitHub Actions yamllint-github-action
Galaxy release publish-ansible-role-to-galaxy