Skip to content

Commit

Permalink
支持多个 NTP 服务器地址
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghe-fit2cloud committed Oct 20, 2021
1 parent c50dd08 commit 481d261
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/chrony/templates/server-centos.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Use public servers from the pool.ntp.org project.
{% if ntp_server is defined %}
{% if ntp_server %}server {{ntp_server}} iburst{% endif %}
{% if ntp_server is defined and ntp_server %}
{% for server in ntp_server.split(',') %}
server {{ server }} iburst
{% endfor %}
{% endif %}

# Ignor source level
Expand Down

0 comments on commit 481d261

Please sign in to comment.