2018-12-28 15:10:34 +01:00
|
|
|
---
|
2022-11-16 23:34:46 +01:00
|
|
|
- name: Seting up ntp config
|
2021-03-12 13:20:58 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: templates/ntp.conf.j2
|
2018-12-28 15:10:34 +01:00
|
|
|
dest: "{{ ntp_configfile }}"
|
|
|
|
owner: "{{ ntp_configfile_user }}"
|
|
|
|
group: "{{ ntp_configfile_group }}"
|
2018-12-28 15:16:21 +01:00
|
|
|
mode: 0644
|
2018-12-28 15:10:34 +01:00
|
|
|
notify: "Restart ntp daemons on {{ ansible_system }}"
|
2023-11-28 03:05:59 +01:00
|
|
|
|
|
|
|
- name: Create logging folder
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ ntp_ntpstats_dir }}"
|
|
|
|
state: directory
|
2023-11-28 03:40:01 +01:00
|
|
|
recurse: true
|
|
|
|
mode: 'u=rwX,g=rX,o=rX'
|
2023-11-28 03:18:03 +01:00
|
|
|
owner: "{{ ntp_user }}"
|
2023-11-28 03:49:51 +01:00
|
|
|
notify: "Restart ntp daemons on {{ ansible_system }}"
|