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