From 96e7a436840ccc03b47750a577f95f08bb481774 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 14 Jul 2019 16:41:11 +0300 Subject: [PATCH] Feat(adjtimex): Copy the script if it's not already there --- playbooks/adjtimex.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/playbooks/adjtimex.yml b/playbooks/adjtimex.yml index b8e9239..7101e79 100644 --- a/playbooks/adjtimex.yml +++ b/playbooks/adjtimex.yml @@ -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 -- 2.39.5