]> git.phdru.name Git - ansible.git/blobdiff - playbooks/adjtimex.yml
Refactor(init-system): Install `dnsutils`
[ansible.git] / playbooks / adjtimex.yml
index 0a8b732953424c0e8091a1eb19af87a444d8e54f..adf745c9fecc88d0e7e67ca3967cdabde3df24cf 100644 (file)
@@ -1,6 +1,14 @@
-- name: adjtimex: sync time and ajust kernel coeffitients
+- name: "adjtimex: sync time and adjust kernel coefficients"
   hosts: "{{ hosts | default('all') }}"
   gather_facts: false
+  become: true
   tasks:
-    - name: adjtimex
+    - name: Copy the script adjtimex.sh
+      copy:
+        src: ~/admin/prog/adjtimex.sh
+        dest: /usr/local/sbin/adjtimex.sh
+        owner: root
+        group: root
+        mode: 0750
+    - name: Run adjtimex.sh
       command: /usr/local/sbin/adjtimex.sh