From a556f069eccc12704ed3c6c20b2463eeb9790f4f Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 4 Apr 2024 08:18:32 +0200 Subject: [PATCH] Introduce ntp-hosts --- templates/chrony.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/chrony.conf.j2 b/templates/chrony.conf.j2 index 45a5883..b89a667 100644 --- a/templates/chrony.conf.j2 +++ b/templates/chrony.conf.j2 @@ -1,7 +1,7 @@ # {{ ansible_managed }} # List of NTP servers to use. -{% if ansible_hostname == 'hesat' %} +{% if inventory_hostname in groups['ntp-hosts'] %} pool ntp.tuxfamily.net iburst pool fr.pool.ntp.org iburst server 2a01:e0a:2b:2250::b