https://github.com/sansible/ntp
Install and configure NTP
https://github.com/sansible/ntp
ansible ansible-role ansible-roles ntp
Last synced: 4 months ago
JSON representation
Install and configure NTP
- Host: GitHub
- URL: https://github.com/sansible/ntp
- Owner: sansible
- License: mit
- Created: 2016-06-30T07:57:41.000Z (about 10 years ago)
- Default Branch: develop
- Last Pushed: 2020-06-18T08:50:35.000Z (about 6 years ago)
- Last Synced: 2025-04-08T10:41:37.990Z (about 1 year ago)
- Topics: ansible, ansible-role, ansible-roles, ntp
- Language: Makefile
- Size: 20.5 KB
- Stars: 2
- Watchers: 8
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NTP
Master: [](https://travis-ci.org/sansible/ntp)
Develop: [](https://travis-ci.org/sansible/ntp)
* [Installation and Dependencies](#installation-and-dependencies)
* [Tags](#tags)
* [Examples](#examples)
This roles installs and configures NTP, it will also set the timezone.
## Installation and Dependencies
This role has no dependencies.
To install run `ansible-galaxy install sansible.ntp` or add
this to your `roles.yml`
```YAML
- src: sansible.ntp
version: v2.0
```
and run `ansible-galaxy install -p ./roles -r roles.yml`
## Tags
This role uses two tags: **build**, **configure**
* `build` - Install NTP
* `configure` - Configures timezone and enable NTP
## Examples
Simple example for enabling NTP and setting timezone to Europe/London
```YAML
- name: Install and setup NTP
hosts: sandbox
roles:
- name: sansible.ntp
sansible_ntp_timezone: Europe/London
```
Example of using a different set of NTP servers (AWS servers are used by default):
```YAML
- name: Install and setup NTP
hosts: sandbox
roles:
- name: sansible.ntp
sansible_ntp_servers:
- 0.ubuntu.pool.ntp.org
- 1.ubuntu.pool.ntp.org
- 2.ubuntu.pool.ntp.org
- 3.ubuntu.pool.ntp.org
```