Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nosmoht/ansible-role-ntp
Ansible role to install and configure NTP daemon
https://github.com/nosmoht/ansible-role-ntp
Last synced: 21 days ago
JSON representation
Ansible role to install and configure NTP daemon
- Host: GitHub
- URL: https://github.com/nosmoht/ansible-role-ntp
- Owner: Nosmoht
- Created: 2014-10-18T11:01:57.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T10:50:20.000Z (almost 2 years ago)
- Last Synced: 2023-12-16T19:23:22.387Z (11 months ago)
- Language: Jinja
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NTP
==========Ansible role to install and configure NTP daemon on RHEL based systems.
# Requirements
Ansible > 1.2
# Role variables
| Name | Description | Default value |
|:-----|:-----|:-----|
| ntp_package_name | Package name | ntp |
| ntp_package_state | Package state | installed |
| ntp_service_name | Service name | _depends on ansible_os_family_ |
| ntp_service_state | service state | running |
| ntp_service_enabled | Boolean defining if NTP has to be started on system boot | true |
| ntp_config_file | File name of ntp.conf | /etc/ntp.conf |
| ntp_config_file_template | Name of Jinja2 template to use to generate the config file | ntp.conf.j2 |
| ntp_drift_file | File name of drift file | /var/lib/ntp/ntp.drift |
| ntp_key_file | File name of key file | /etc/ntp/keys |
| ntp_servers | List of ip addresses or hostnames of NTP servers | [0-3].de.pool.ntp.org |# Example Playbook
```yaml
- hosts: all
vars:
ntp_servers:
- 0.de.pool.ntp.org
- 1.de.pool.ntp.org
- 2.de.pool.ntp.org
- 3.de.pool.ntp.org
roles:
- role: ntp
```# License
Apache 2.0
# Author information
[Thomas Krahn][Thomas Krahn]: mailto:[email protected]