summaryrefslogtreecommitdiff
path: root/roles/core/ntp/templates/openntpd.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/core/ntp/templates/openntpd.conf.j2')
-rw-r--r--roles/core/ntp/templates/openntpd.conf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/core/ntp/templates/openntpd.conf.j2 b/roles/core/ntp/templates/openntpd.conf.j2
index 09a6a9c3..3e2204f6 100644
--- a/roles/core/ntp/templates/openntpd.conf.j2
+++ b/roles/core/ntp/templates/openntpd.conf.j2
@@ -1,3 +1,4 @@
+{% if ntp_client is defined %}
### Client
{% if 'servers' in ntp_client %}
@@ -11,6 +12,7 @@ server {{ server.name }}{% if 'options' in server %} {{ server.options }}{% endi
servers {{ pool.name }}{% if 'options' in pool %} {{ pool.options }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
+{% endif %}
{% if ntp_server is defined %}