]> git.phdru.name Git - ansible.git/commitdiff
Feat(adjtimex): Install `adjtimex` and `ntpdate`
authorOleg Broytman <phd@phdru.name>
Sun, 1 Sep 2019 14:43:32 +0000 (17:43 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 1 Sep 2019 14:43:32 +0000 (17:43 +0300)
playbooks/roles/adjtimex/tasks/main.yml

index fb720c71c7cbc3010b6cc719d3ce3d15c7b35def..16209b722ddb4c28a62f6e417dacc27ee40bd8d9 100644 (file)
@@ -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: