This role installs the NTP package which is a protocol designed to synchronize the clocks of computers over a network.
This role requires Ansible version 1.4 or higher and the Debian/Ubuntu platform.
The variables that can be passed to this role and a brief description about them are as follows (additional variables are available in the source):
# The list of default NTP time servers used for synchronization
ntp_servers:
- '0.ubuntu.pool.ntp.org'
- '1.ubuntu.pool.ntp.org'
- '2.ubuntu.pool.ntp.org'
- '3.ubuntu.pool.ntp.org'
-
Install NTP with the defaults
--- # This playbook installs NTP - name: Apply NTP to all nodes hosts: all roles: - ntp
-
Install NTP with custom time servers
--- # This playbook installs NTP - name: Apply NTP to all nodes hosts: all roles: - { role: ntp, ntp_servers: [0.pool.ntp.org, 1.pool.ntp.org] }
None.
MIT.