[ntp-client] Install systemd-timesyncd on Bullseye

Signed-off-by: ynerant <ynerant@crans.org>
certbot_on_virtu
ynerant 2021-02-17 16:25:35 +01:00
parent 61cf1eb892
commit 02faa09e61
1 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,18 @@
until: apt_result is succeeded
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
template:
src: systemd/timesyncd.conf.j2