/ansible-ntp

An Ansible role that installs and configures NTP service on Linux and sets Timezone

Primary LanguageDockerfileApache License 2.0Apache-2.0

ntp

Build Status Ansible Galaxy

An Ansible role that installs and configures NTP service on Linux and sets Timezone.

Platforms

Role tested on Linux operating systems:

  • Ubuntu Server 18.04 LTS
  • Ubuntu Server 16.04 LTS

Requirements

None.

Role Variables

ntp_servers: The NTP pool servers to synchronize from with its default value.

ntp_servers:
  - a.ntp.br
  - b.ntp.br
  - c.ntp.br

ntp_timezone: The Timezone to configure system-wide with its default value.

ntp_timezone: America/Sao_Paulo

The cron service will be reloaded every time the Timezone changes.

Dependencies

None.

Example Playbook

- hosts: all
  become: True
  roles:
  - role: everporven.ntp
    ntp_timezone: America/Sao_Paulo
    ntp_servers:
      - 0.br.pool.ntp.org
      - 1.br.pool.ntp.org
      - 2.br.pool.ntp.org

License

Apache License 2.0

Author Information

Boaventura Rodrigues Neto