No description
Find a file
semantic-release-bot 4adb8ae025 chore(release): 1.8.0 [skip ci]
# [1.8.0](https://github.com/de-it-krachten/ansible-role-timesync/compare/v1.7.0...v1.8.0) (2026-03-15)

### Features

* Added support for Fedora 43 ([9bdcf01](9bdcf01dcc))
* Drop support for Fedora 41 ([b353b0e](b353b0e272))
2026-03-15 14:34:19 +00:00
.github/workflows Update supported platforms & CI 2026-03-14 20:05:52 +01:00
defaults feat: Update supported platforms & CI 2023-08-16 22:16:16 +02:00
handlers feat: Move to FQCN 2022-10-09 23:34:40 +02:00
meta Update CI 2026-03-07 01:07:44 +01:00
molecule/default Update supported platforms & CI 2026-03-14 15:31:35 +01:00
tasks feat: Update supported platforms & CI 2024-12-29 17:34:17 +01:00
templates feat: initial release 2022-04-14 23:56:18 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-09 23:35:07 +02:00
.cicd Update CI 2026-03-07 01:07:44 +01:00
.cicd.overwrite Update CI 2026-03-07 01:07:44 +01:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 23:53:44 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 17:34:17 +01:00
.releaserc.yml Update CI 2025-09-03 23:15:21 +02:00
.roles feat: Update CI to latest standards 2022-10-09 23:35:07 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 17:34:17 +01:00
CHANGELOG.md chore(release): 1.8.0 [skip ci] 2026-03-15 14:34:19 +00:00
README.md Update CI 2026-03-07 01:07:44 +01:00

CI

ansible-role-timesync

Configure time synchronization based upon timesync

Dependencies

Roles

None

Collections

  • community.general

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • RockyLinux 8
  • RockyLinux 9
  • OracleLinux 8
  • OracleLinux 9
  • AlmaLinux 8
  • AlmaLinux 9
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Fedora 42
  • Fedora 43

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# packages that need to be present
timesync_packages:
  - systemd-timesyncd

# should obsolete packages be uninstalled
timesync_packages_uninstall: false

# Packages that can be removed
timesync_packages_obsolete:
  - chrony
  - ntp

# Obsolete services
timesync_services_obsolete:
  - chrony
  - chronyd
  - ntp
  - ntpd

# Time zone (eg 'Europe/Amsterdam')
# Use value 'unchanged' to leave it unchanged
timesync_timezone: ""

# Ensure hwclock is set to UTC or local time
# options : local, UTC
timesync_hwclock: null

# List of primary NTP servers
timesync_ntp_servers: []

# List of fallback NTP servers
timesync_fallback_ntp_servers:
  - 0.pool.ntp.org
  - 1.pool.ntp.org
  - 2.pool.ntp.org
  - 3.pool.ntp.org

# Additional options (as key/value pairs)
timesync_options: {}

defaults/Debian-10.yml


# packages that should be installed
timesync_packages: []

defaults/family-Debian.yml



defaults/family-RedHat-7.yml


# packages that should be installed
timesync_packages: []

defaults/family-RedHat.yml



defaults/family-Suse.yml


# For SLES/OpenSUSE, it is part of ssytemd
timesync_packages: []

defaults/Fedora.yml


# packages that need to be present
timesync_packages:
  - systemd-udev

defaults/Ubuntu-18.yml


# packages that should be installed
timesync_packages: []

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'timesync'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    timesync_timezone: UTC
    timesync_ntp_servers:
      - 0.nl.pool.ntp.org
      - 1.nl.pool.ntp.org
      - 2.nl.pool.ntp.org
      - 3.nl.pool.ntp.org
  tasks:
    - name: Include role 'timesync'
      ansible.builtin.include_role:
        name: timesync