-- name: Install adjtimex and ntpdate-debian
+- name: Install adjtimex, ntpdate-debian and hwclock
become: true
apt:
autoclean: yes
autoremove: yes
cache_valid_time: 3600
install_recommends: no
- name: ['adjtimex', 'ntpdate']
+ # Install adjtimex, ntpdate-debian and hwclock
+ name: ['adjtimex', 'ntpdate', 'util-linux']
state: latest
update_cache: yes
when: ansible_facts.os_family == 'Debian'
update_cache: no
when: ansible_facts.os_family == 'Debian'
-- name: Install adjtimex and ntpdate
+- name: Install adjtimex, ntpdate and hwclock
become: true
dnf:
- name: ['adjtimex', 'ntpdate']
+ # Install adjtimex, ntpdate-debian and hwclock
+ name: ['adjtimex', 'ntpdate', 'util-linux']
state: latest
update_cache: yes
when: ansible_facts.os_family == 'RedHat'