biiiiig update !

This commit is contained in:
Ludovic Cartier
2026-02-20 15:46:38 +01:00
parent ecda4ecafd
commit 717c98fa6c
12 changed files with 221 additions and 25 deletions
+31
View File
@@ -0,0 +1,31 @@
---
- name: datetime | install ntp
apt:
name: ntp
state: present
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | int < 13
- name: datetime | ensure ntp is running
service:
name: ntp
state: started
enabled: yes
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | int < 13
- name: datetime | install systemd-timesyncd
apt:
name: systemd-timesyncd
state: present
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | int >= 13
- name: datetime | ensure systemd-timesyncd is running
service:
name: systemd-timesyncd
state: started
enabled: yes
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | int >= 13
- name: datetime | set date
timezone:
name: "{{ timezone | default('Europe/Paris') }}"
when: ansible_os_family == 'Debian'