summaryrefslogtreecommitdiff
path: root/roles/core
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-06-15 19:35:36 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-06-15 19:35:36 +0200
commit8e5c279f7cecf29589835e74602155b9afc430d8 (patch)
treec55e219fa44c220a29a4ef55ddc10c5f37456675 /roles/core
parentupdate apt-repo gpg key for tor-project (diff)
add simple handling for nftable rulesets in base role
Diffstat (limited to 'roles/core')
-rw-r--r--roles/core/ntp/tasks/Debian_systemd-timesyncd.yml6
1 files changed, 6 insertions, 0 deletions
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