Ensure hwclock is installed when required
Change-Id: I6c06eef29166fcd738c22505408980b9246fbd0b (cherry picked from commit 8f84b59630d8ae55b8e98999caee7dfd7d334499)
This commit is contained in:
parent
4a21767cbb
commit
20b0a7ffc0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user