All Projects → geerlingguy → Ansible Role Ntp

geerlingguy / Ansible Role Ntp

Licence: mit
Ansible Role - NTP

Projects that are alternatives of or similar to Ansible Role Ntp

Ansible Mysql Hardening
This Ansible role provides security configuration for MySQL.
Stars: ✭ 132 (-34.98%)
Mutual labels:  ansible, role
Ansible Gitlab Runner
Ansible role to install gitlab-runner
Stars: ✭ 143 (-29.56%)
Mutual labels:  ansible, role
Ansible Role Dotfiles
Ansible Role - Easy and flexible dotfile installation.
Stars: ✭ 133 (-34.48%)
Mutual labels:  ansible, role
Aws Securitygroup Grapher
This ansible role gets information from an AWS VPC and generate a graphical representation of security groups
Stars: ✭ 93 (-54.19%)
Mutual labels:  ansible, role
Ansible Role Redis
Ansible Role - Redis
Stars: ✭ 176 (-13.3%)
Mutual labels:  ansible, role
Network Engine
This role provides the foundation for building network roles by providing modules and plugins that are common to all Ansible Network roles.
Stars: ✭ 108 (-46.8%)
Mutual labels:  ansible, role
Ansible Role Nfs
Ansible Role - NFS
Stars: ✭ 141 (-30.54%)
Mutual labels:  ansible, role
Ansible Role Packer rhel
Ansible Role - Packer RHEL/CentOS Configuration for Vagrant VirtualBox
Stars: ✭ 45 (-77.83%)
Mutual labels:  ansible, role
Ansible Role Git
Ansible Role - Git
Stars: ✭ 153 (-24.63%)
Mutual labels:  ansible, role
Ansible Role Composer
Ansible Role - Composer PHP Dependency Manager
Stars: ✭ 149 (-26.6%)
Mutual labels:  ansible, role
Aurio
Audio Fingerprinting & Retrieval for .NET
Stars: ✭ 84 (-58.62%)
Mutual labels:  synchronization, time
Ansible Nginx Hardening
This Ansible role provides secure nginx configurations.
Stars: ✭ 180 (-11.33%)
Mutual labels:  ansible, role
Ansible Role Ruby
Ansible Role - Ruby
Stars: ✭ 77 (-62.07%)
Mutual labels:  ansible, role
Ansible Role Haproxy
Ansible Role - HAProxy
Stars: ✭ 112 (-44.83%)
Mutual labels:  ansible, role
Ansible Role Memcached
Ansible Role - Memcached
Stars: ✭ 54 (-73.4%)
Mutual labels:  ansible, role
Ansible Role Logstash
Ansible Role - Logstash
Stars: ✭ 136 (-33%)
Mutual labels:  ansible, role
Ansible Role Php Xdebug
Ansible Role - PHP Xdebug
Stars: ✭ 34 (-83.25%)
Mutual labels:  ansible, role
Ansible Role Seafile
An ansible role to deploy Seafile, an Open Source Cloud Storage. http://seafile.com/
Stars: ✭ 38 (-81.28%)
Mutual labels:  ansible, role
Ansible Role Repo Epel
Ansible Role - EPEL Repository for RHEL/CentOS
Stars: ✭ 149 (-26.6%)
Mutual labels:  ansible, role
Ansible Collection Hardening
This Ansible collection provides battle tested hardening for Linux, SSH, nginx, MySQL
Stars: ✭ 2,543 (+1152.71%)
Mutual labels:  ansible, role

Ansible Role: NTP

CI

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 its child VMs.

ntp_timezone: Etc/UTC

Set the timezone for your server.

ntp_package: ntp

The package to install which provides NTP functionality. The default is ntp for most platforms, or chrony on RHEL/CentOS 7 and later.

ntp_daemon: [various]

The default NTP daemon should be correct for your distribution, but there are some cases where you may want to override the default, e.g. if you're running ntp on newer versions of RHEL/CentOS.

ntp_config_file: /etc/ntp.conf

The path to the NTP configuration file. The default is /etc/ntp.conf for most platforms, or /etc/chrony.conf on RHEL/CentOS 7 and later.

ntp_manage_config: false

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

ntp_driftfile: [various]

The default NTP driftfile should be correct for your distribution, but there are some cases where you may want to override the default.

ntp_area: ''

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

ntp_servers:
  - "0{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
  - "1{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
  - "2{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst"
  - "3{{ '.' + ntp_area if ntp_area else '' }}.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.

ntp_cron_handler_enabled: false

Whether to restart the cron daemon after the timezone has changed.

ntp_tinker_panic: true

Enable tinker panic, which is useful when running NTP in a VM.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].