This project adheres to Semantic Versioning and human-readable changelog.

The current role maintainer is drybjed.

debops.ntp master - unreleased

debops.ntp v0.2.3 - 2016-08-29


  • Role will not uninstall the ntpdate package automatically if ntp__ignore_ntpdate boolean variable is enabled. [drybjed]


  • The timezone configuration tasks are moved to a separate timezone.yml file for ease of use. [le9i0nx]


  • Timezone should now be set correctly on hosts with systemd-timesyncd enabled. [drybjed]
  • Fix the idempotency loop when the /etc/localtime file is a symlink to a timezone file, and dpkg-reconfigure tzdata is executed. [drybjed]

debops.ntp v0.2.2 - 2016-07-28


  • Remove the ntp package before installing the openntpd package to avoid issues with AppArmor profiles. [thiagotalma]
  • Use the timedatectl command to set the timezone on systems with systemd-timesyncd enabled. [thiagotalma]
  • Update documentation and Changelog. [drybjed]
  • Use different NTP server pools for Debian and ubuntu distributions. [drybjed]
  • By default, use systemd-timesyncd on Ubuntu with systemd installed, to avoid issues with changing NTP servers. You can still select a different NTP server as usual, by specifying it using ntp__daemon variable. The current installations won't be changed. [drybjed]
  • Move the dpkg-reconfigre task after the NTP installation and configuration tasks to avoid issues with idempotency on Ubuntu. [drybjed]
  • Move the NTP daemon installation condition to a new ntp__daemon_enabled variable and remove ntp__root_flags since they are not needed anymore. [drybjed]

debops.ntp v0.2.1 - 2016-05-19


  • Completed namespace change to ntp__ from v0.2.0. [ypid]

debops.ntp v0.2.0 - 2016-05-19


  • Support configuration of openntpd startup options. This is needed to add the -s flag so that the daemon will synchronize time immediately on startup if the difference is large enough. [drybjed]
  • Add support for system-timesyncd configuration. If other daemons are enabled, role will automatically disable the system-timesyncd service so that it won't interfere with normal operations. [drybjed]


  • The tzdata package is frequently updated after the Debian Stable release and almost always newer version will be available from stable-updates repository. This results in frequent e-mail messages informing about updated tzdata package available to install. This change ensures that on first configuration of a host, tzdata package will be updated automatically, which should help ensure that mentioned e-mails won't be sent. [drybjed]

  • Configure /etc/timezone using template.

    In Ansible v2, using copy module with content parameter is unreliable, since the "end of line" character is rendered directly in the file. Switching to template module ensures that generated configuration file has correct formatting and should stop generating idempotency issues with tzdata package configuration. [drybjed]

  • Check if NTP daemon can be installed in Ansible facts. [drybjed]

  • Changed variable namespace from ntp_ to ntp__. ntp_[^_] variables are hereby deprecated.

    You might need to update your inventory. This oneliner might come in handy to do this:

    git ls-files -z | xargs --null -I '{}' find '{}' -type f -print0 | xargs --null sed --in-place --regexp-extended 's/\<(ntp)_([^_])/\1__\2/g;'


  • Update documentation. [drybjed]

debops.ntp v0.1.0 - 2015-11-13


  • Add Changelog [drybjed]
  • Added support for ntpdate. [ypid]


  • Uninstall conflicting packages before installing the requested ones. This should fix ntp and AppArmor issue present in Ubuntu. [drybjed]
  • Fixed ntp_listen: '*' for NTPd. [ypid]
  • Rewrite the installation tasks to work correctly on Ansible v2. [drybjed]
  • Drop the dependency on debops.ferm Ansible role, firewall configuration is now defined in role default variables, and can be used by other roles through playbooks. [drybjed]