Role Detail

geerlingguy.ntp

NTP installation and configuration for Linux.
Downloads
41411
Type Ansible
Minimum Ansible Version 2.2
Installation $ ansible-galaxy install geerlingguy.ntp
Tags
system
Last Commit 2017-07-12 13:19:01 PM UTC
Last Imported 2017-10-30 11:56:11 AM UTC
Version History
Version Release Date
1.5.2 2017-07-12 13:19:01 PM
1.5.1 2017-06-21 13:58:01 PM
1.5.0 2017-06-11 19:46:07 PM
1.4.2 2017-04-06 21:10:09 PM
1.4.1 2017-01-22 02:01:02 AM
1.4.0 2016-12-27 17:43:05 PM
1.3.0 2016-07-04 21:46:09 PM
1.2.0 2016-06-23 15:59:03 PM
1.1.0 2016-03-04 04:59:04 AM
1.0.4 2015-07-18 02:20:02 AM
1.0.3 2015-06-18 04:38:04 AM
1.0.2 2014-05-09 14:45:02 PM
1.0.1 2014-03-17 02:19:02 AM
1.0.0 2014-03-05 15:56:03 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 5
EL 6
EL 7
FreeBSD 10.0
FreeBSD 10.1
FreeBSD 10.2
FreeBSD 10.3
FreeBSD 11.0
FreeBSD 8.0
FreeBSD 8.1
FreeBSD 8.2
FreeBSD 8.3
FreeBSD 8.4
FreeBSD 9.0
FreeBSD 9.1
FreeBSD 9.1
FreeBSD 9.2
FreeBSD 9.3
Ubuntu artful
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Last 10 Imports
Completed Status
2017-10-30 11:56:11 AM UTC SUCCESS
2017-10-04 15:40:03 PM UTC SUCCESS
2017-07-12 13:26:01 PM UTC SUCCESS
2017-07-12 13:23:01 PM UTC SUCCESS
2017-07-12 11:28:11 AM UTC SUCCESS
2017-07-01 04:17:04 AM UTC SUCCESS
2017-07-01 04:17:04 AM UTC SUCCESS
2017-06-21 16:53:04 PM UTC SUCCESS
2017-06-21 16:52:04 PM UTC SUCCESS
2017-06-21 14:14:02 PM UTC SUCCESS

Ansible Role: NTP

Build Status

Installs NTP on Linux.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

ntp_enabled: true

Whether to start the ntpd service and enable it at system boot. On many virtual machines that run inside a container (like OpenVZ or VirtualBox), it's recommended you don't run the NTP daemon, since the host itself should be set to synchronize time for all it's child VMs.

ntp_timezone: Etc/UTC

Set the timezone for your server.

ntp_manage_config: false

Set to true to allow this role to manage the NTP configuration file (/etc/ntp.conf).

ntp_area: ''

Set the NTP Pool Area to use. Defaults to none, which uses the worldwide pool.

ntp_servers:
  - "0{{ ntp_area }}.pool.ntp.org iburst"
  - "1{{ ntp_area }}.pool.ntp.org iburst"
  - "2{{ ntp_area }}.pool.ntp.org iburst"
  - "3{{ ntp_area }}.pool.ntp.org iburst"

Specify the NTP servers you'd like to use. Only takes effect if you allow this role to manage NTP's configuration, by setting ntp_manage_config to true.

ntp_restrict:
  - "127.0.0.1"
  - "::1"

Restrict NTP access to these hosts; loopback only, by default.

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - geerlingguy.ntp

Inside vars/main.yml:

ntp_timezone: America/Chicago

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

None