Install timesyncd on Debian Bullseye
This commit is contained in:
parent
54274ae965
commit
3ac5150ff7
1 changed files with 7 additions and 1 deletions
|
|
@ -1,9 +1,15 @@
|
||||||
|
- name: install timesyncd
|
||||||
|
when: ansible_distribution_release == "bullseye"
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- systemd-timesyncd
|
||||||
|
|
||||||
- name: enable timesyncd
|
- name: enable timesyncd
|
||||||
service:
|
service:
|
||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
state: started
|
state: started
|
||||||
enabled: True
|
enabled: True
|
||||||
|
|
||||||
- name: Set timezone
|
- name: set timezone
|
||||||
timezone:
|
timezone:
|
||||||
name: "{{ ntp.timezone }}"
|
name: "{{ ntp.timezone }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue