From f061544029b64c033cd393081450deb53d076acc Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 1 Sep 2019 17:43:32 +0300 Subject: [PATCH] Feat(adjtimex): Install `adjtimex` and `ntpdate` --- playbooks/roles/adjtimex/tasks/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/playbooks/roles/adjtimex/tasks/main.yml b/playbooks/roles/adjtimex/tasks/main.yml index fb720c7..16209b7 100644 --- a/playbooks/roles/adjtimex/tasks/main.yml +++ b/playbooks/roles/adjtimex/tasks/main.yml @@ -1,3 +1,23 @@ +- name: Install adjtimex and ntpdate-debian + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: ['adjtimex', 'ntpdate-debian'] + state: latest + update_cache: yes + when: ansible_facts.distribution == "Debian" + +- name: Install adjtimex and ntpdate + become: true + dnf: + name: ['adjtimex', 'ntpdate'] + state: latest + update_cache: yes + when: ansible_facts.distribution != "Debian" + - name: Copy the script adjtimex.sh become: true template: -- 2.39.5