An Ansible role that installs and configures NTP service on Linux and sets Timezone.
Role tested on Linux operating systems:
- Ubuntu Server 18.04 LTS
- Ubuntu Server 16.04 LTS
None.
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.
None.
- 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