+- 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: