diff --git a/ansible/roles/ntp/tasks/sync.yml b/ansible/roles/ntp/tasks/sync.yml index e679d3915..6200c1006 100644 --- a/ansible/roles/ntp/tasks/sync.yml +++ b/ansible/roles/ntp/tasks/sync.yml @@ -12,6 +12,11 @@ pause: seconds: 5 + - name: Ensure hwclock is installed + package: + name: "{{ 'util-linux' if ansible_facts.os_family == 'RedHat' else 'util-linux-extra' }}" + state: present + - name: Force hardware clock synchronisation command: hwclock --systohc when: ntp_force_sync | bool