23 lines
494 B
YAML
23 lines
494 B
YAML
---
|
|
|
|
# install chrony
|
|
- name: "ntp - install - chrony debian"
|
|
ansible.builtin.apt:
|
|
name: "chrony"
|
|
state: "present"
|
|
when: 'ansible_os_family == "Debian"'
|
|
tags:
|
|
- "ntp"
|
|
|
|
# configure chrony
|
|
- name: "ntp - config - configure chrony"
|
|
ansible.builtin.template:
|
|
src: "templates/chrony/chrony.conf.j2"
|
|
dest: "/etc/chrony/chrony.conf"
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
when: 'ansible_os_family == "Debian"'
|
|
notify: "restart chrony"
|
|
tags:
|
|
- "ntp"
|