-- name: adjtimex: sync time and adjust kernel coefficients
+- name: "adjtimex: sync time and adjust kernel coefficients"
hosts: "{{ hosts | default('all') }}"
gather_facts: false
+ become: true
tasks:
- - name: adjtimex
+ - name: Copy the script adjtimex.sh
+ 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