-- 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: Copy the script
+ - 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
+ mode: 0750
+ - name: Run adjtimex.sh
command: /usr/local/sbin/adjtimex.sh