]> git.phdru.name Git - ansible.git/commitdiff
Feat: Rename `adjtimex` -> `ntpdate-hwc`
authorOleg Broytman <phd@phdru.name>
Fri, 29 Jul 2022 15:24:57 +0000 (18:24 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 29 Jul 2022 15:24:57 +0000 (18:24 +0300)
playbooks/roles/adjtimex/files/adjtimex [deleted file]
playbooks/roles/ntpdate-hwc/files/ntpdate-hwc [new file with mode: 0755]
playbooks/roles/ntpdate-hwc/tasks/main.yml [moved from playbooks/roles/adjtimex/tasks/main.yml with 85% similarity]
playbooks/roles/ntpdate-hwc/templates/ntpdate-hwc [moved from playbooks/roles/adjtimex/templates/adjtimex.sh with 100% similarity]

diff --git a/playbooks/roles/adjtimex/files/adjtimex b/playbooks/roles/adjtimex/files/adjtimex
deleted file mode 100755 (executable)
index f11f2dc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/local/sbin/adjtimex.sh
diff --git a/playbooks/roles/ntpdate-hwc/files/ntpdate-hwc b/playbooks/roles/ntpdate-hwc/files/ntpdate-hwc
new file mode 100755 (executable)
index 0000000..c86e368
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/local/sbin/ntpdate-hwc
similarity index 85%
rename from playbooks/roles/adjtimex/tasks/main.yml
rename to playbooks/roles/ntpdate-hwc/tasks/main.yml
index 876bc8f6d6c1f3d95d500fa4dc64e283df6c63b2..bf7acc407f4cc1c93a34b0522a3c150a5446a7ad 100644 (file)
     update_cache: yes
   when: ansible_facts.os_family == 'RedHat'
 
-- name: Copy the script adjtimex.sh
+- name: Copy the script ntpdate-hwc
   become: true
   template:
-    src: adjtimex.sh
-    dest: /usr/local/sbin/adjtimex.sh
+    src: ntpdate-hwc
+    dest: /usr/local/sbin/ntpdate-hwc
     owner: root
     group: root
     mode: 0750
 
-- name: Configure adjtimex weekly run
+- name: Configure ntpdate-hwc weekly run
   become: true
   copy:
-    src: adjtimex
+    src: ntpdate-hwc
     dest: /etc/cron.weekly
     owner: root
     group: root