---
# Check disabled on Ubuntu Focal, as it's not possible there
# https://github.com/ansible/ansible/issues/71528
  - name: ensure ntp is runing
    service: name=ntp state=started enabled=yes
    when: ansible_os_family == "Debian" and (ansible_distribution != "Ubuntu" and ansible_distribution_release != "focal")

  - name: ensure ntp is runing (RedHat)
    service: name=ntpd state=started enabled=yes
    when: ansible_os_family == "RedHat"
