From 4fb45f162c84522806a6959a53ef4adb484471d9 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 29 Jul 2022 18:24:57 +0300 Subject: [PATCH] Feat: Rename `adjtimex` -> `ntpdate-hwc` --- playbooks/roles/adjtimex/files/adjtimex | 2 -- playbooks/roles/ntpdate-hwc/files/ntpdate-hwc | 2 ++ .../roles/{adjtimex => ntpdate-hwc}/tasks/main.yml | 10 +++++----- .../adjtimex.sh => ntpdate-hwc/templates/ntpdate-hwc} | 0 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100755 playbooks/roles/adjtimex/files/adjtimex create mode 100755 playbooks/roles/ntpdate-hwc/files/ntpdate-hwc rename playbooks/roles/{adjtimex => ntpdate-hwc}/tasks/main.yml (85%) rename playbooks/roles/{adjtimex/templates/adjtimex.sh => ntpdate-hwc/templates/ntpdate-hwc} (100%) diff --git a/playbooks/roles/adjtimex/files/adjtimex b/playbooks/roles/adjtimex/files/adjtimex deleted file mode 100755 index f11f2dc..0000000 --- a/playbooks/roles/adjtimex/files/adjtimex +++ /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 index 0000000..c86e368 --- /dev/null +++ b/playbooks/roles/ntpdate-hwc/files/ntpdate-hwc @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/local/sbin/ntpdate-hwc diff --git a/playbooks/roles/adjtimex/tasks/main.yml b/playbooks/roles/ntpdate-hwc/tasks/main.yml similarity index 85% rename from playbooks/roles/adjtimex/tasks/main.yml rename to playbooks/roles/ntpdate-hwc/tasks/main.yml index 876bc8f..bf7acc4 100644 --- a/playbooks/roles/adjtimex/tasks/main.yml +++ b/playbooks/roles/ntpdate-hwc/tasks/main.yml @@ -28,19 +28,19 @@ 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 diff --git a/playbooks/roles/adjtimex/templates/adjtimex.sh b/playbooks/roles/ntpdate-hwc/templates/ntpdate-hwc similarity index 100% rename from playbooks/roles/adjtimex/templates/adjtimex.sh rename to playbooks/roles/ntpdate-hwc/templates/ntpdate-hwc -- 2.39.5