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
|
||||
service:
|
||||
name: systemd-timesyncd
|
||||
state: started
|
||||
enabled: True
|
||||
|
||||
- name: Set timezone
|
||||
- name: set timezone
|
||||
timezone:
|
||||
name: "{{ ntp.timezone }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue