From: Oleg Broytman Date: Sun, 14 Jul 2019 13:41:11 +0000 (+0300) Subject: Feat(adjtimex): Copy the script if it's not already there X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=96e7a436840ccc03b47750a577f95f08bb481774;p=ansible.git Feat(adjtimex): Copy the script if it's not already there --- 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