23 lines
483 B
YAML
23 lines
483 B
YAML
# Alliance Boréale - Rôle Common - NTP Configuration
|
|
# Date: 2025-10-31
|
|
|
|
---
|
|
- name: "📦 Install chrony"
|
|
ansible.builtin.apt:
|
|
name: chrony
|
|
state: present
|
|
|
|
- name: "⚙️ Configure chrony"
|
|
ansible.builtin.template:
|
|
src: chrony.conf.j2
|
|
dest: /etc/chrony/chrony.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart chrony
|
|
|
|
- name: "✅ Start and enable chrony"
|
|
ansible.builtin.systemd:
|
|
name: chrony
|
|
state: started
|
|
enabled: true
|