From 8e5c279f7cecf29589835e74602155b9afc430d8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 15 Jun 2022 19:35:36 +0200 Subject: add simple handling for nftable rulesets in base role --- roles/core/ntp/tasks/Debian_systemd-timesyncd.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/core') diff --git a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml index ae8068b4..40c6629e 100644 --- a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml +++ b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml @@ -6,6 +6,12 @@ - ntp_server is not defined msg: "systemd-timesyncd can not be used as a NTP server or sync to local clocks" +- name: install systemd-timesyncd + when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) > 10) or (ansible_distribution == 'Ubuntu') + apt: + name: systemd-timesyncd + state: present + - name: set ntp servers when: - ntp_client is defined -- cgit v1.2.3