An Ansible role to configure the NTP (Network Time Protocol) service and set the system timezone on Debian servers.
Note: For now, only systemd-timesyncd
package is supported as the NTP service. There are plans to extend support to other services such as chrony.
- Ansible Version: Ensure you are running Ansible version 2.18 or higher.
- Supported Systems: This role is designed for Debian-based systems.
The following variable can be customized to configure the role. The default value is defined in defaults/main.yml
.
ntp_timezone
: (Default:"Europe/Amsterdam"
) The timezone to set on the target system.
This role has no external dependencies.
- hosts: all
become: true
roles:
- role: rafael-c-alexandre.ntp
vars:
ntp_timezone: "America/New_York"
MIT