]> git.phdru.name Git - ansible.git/commitdiff
Feat(adjtimex): Copy the script if it's not already there
authorOleg Broytman <phd@phdru.name>
Sun, 14 Jul 2019 13:41:11 +0000 (16:41 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2019 18:28:41 +0000 (21:28 +0300)
playbooks/adjtimex.yml

index b8e923948cb7530f2afe4ede83a2422bc749afd3..7101e79ee82ec9a7f44f57012fc3a338de5b72f3 100644 (file)
@@ -1,6 +1,14 @@
 - name: adjtimex: sync time and adjust kernel coefficients
   hosts: "{{ hosts | default('all') }}"
   gather_facts: false
+  become: true
   tasks:
-    - name: adjtimex
+    - name: Copy the script
+      copy:
+        src: ~/admin/prog/adjtimex.sh
+        dest: /usr/local/sbin/adjtimex.sh
+        owner: root
+        group: root
+        mode: 0640
+    - name: AdjTimeX
       command: /usr/local/sbin/adjtimex.sh