1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00
ansible_role_ntp/tasks/config.yml

20 lines
546 B
YAML

---
- name: Seting up ntp config
become: true
ansible.builtin.template:
src: templates/ntp.conf.j2
dest: "{{ ntp_configfile }}"
owner: "{{ ntp_configfile_user }}"
group: "{{ ntp_configfile_group }}"
mode: 0644
notify: "Restart ntp daemons on {{ ansible_system }}"
- name: Create logging folder
become: true
ansible.builtin.file:
path: "{{ ntp_ntpstats_dir }}"
state: directory
recurse: true
mode: 'u=rwX,g=rX,o=rX'
owner: "{{ ntp_user }}"
notify: "Restart ntp daemons on {{ ansible_system }}"