From: Oleg Broytman Date: Sun, 1 Sep 2019 14:43:32 +0000 (+0300) Subject: Feat(adjtimex): Install `adjtimex` and `ntpdate` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f061544029b64c033cd393081450deb53d076acc;p=ansible.git Feat(adjtimex): Install `adjtimex` and `ntpdate` --- 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: