[ntp-client] Install systemd-timesyncd on Bullseye
Signed-off-by: ynerant <ynerant@crans.org>certbot_on_virtu
parent
61cf1eb892
commit
02faa09e61
|
@ -9,6 +9,18 @@
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
when: "'ntp_server' not in group_names"
|
when: "'ntp_server' not in group_names"
|
||||||
|
|
||||||
|
- name: Install systemd-timesyncd (bullseye)
|
||||||
|
apt:
|
||||||
|
name: systemd-timesyncd
|
||||||
|
update_cache: true
|
||||||
|
install_recommends: false
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
when:
|
||||||
|
- "'ntp_server' not in group_names"
|
||||||
|
- ansible_distribution_release == "bullseye"
|
||||||
|
|
||||||
- name: Configure NTP
|
- name: Configure NTP
|
||||||
template:
|
template:
|
||||||
src: systemd/timesyncd.conf.j2
|
src: systemd/timesyncd.conf.j2
|
||||||
|
|
Loading…
Reference in New Issue