From 343b0868d1e071a6742230f11e6e62a8e11b81fc Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 14 May 2022 06:09:17 +0300 Subject: [PATCH] Feat(adjtimex): Install `hwclock` from `util-linux` --- playbooks/roles/adjtimex/tasks/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/playbooks/roles/adjtimex/tasks/main.yml b/playbooks/roles/adjtimex/tasks/main.yml index 3f0201a..876bc8f 100644 --- a/playbooks/roles/adjtimex/tasks/main.yml +++ b/playbooks/roles/adjtimex/tasks/main.yml @@ -1,11 +1,12 @@ -- 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' @@ -18,10 +19,11 @@ 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' -- 2.39.5