1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00
ansible_role_ntp/templates/ntp.conf.j2

35 lines
1 KiB
Text
Raw Normal View History

######################################################
## ##
## THIS FILE IS MANAGED BY ANSIBLE ##
## ##
## It is about time ##
## ##
######################################################
# > galaxy.ansible.com/ui/repo/published/l3d/time/ < #
2018-12-28 15:10:34 +01:00
driftfile {{ ntp_driftfile }}
{% if ntp_leap %}
# Leap seconds definition provided by tzdata
leapfile {{ ntp_leapfile }}
{% endif %}
2019-06-05 15:38:18 +02:00
{% for restrict_ip in ntp_restrict %}
2018-12-28 15:10:34 +01:00
restrict {{ restrict_ip }}
2019-06-05 15:38:18 +02:00
{% endfor %}
2018-12-28 15:10:34 +01:00
2019-06-05 15:38:18 +02:00
{% for pool_server in ntp_servers %}
2018-12-28 15:10:34 +01:00
server {{ pool_server }}
2019-06-05 15:38:18 +02:00
{% endfor %}
2018-12-28 15:10:34 +01:00
2019-06-05 15:38:18 +02:00
{% if ntp_statistics | bool %}
statistics {{ ntp_statistics_overview | join(' ') }}
# Enable this if you want statistics to be logged.
statsdir {{ ntp_ntpstats_dir }}
{% for stat in ntp_statistics_overview %}
filegen {{ stat }} file {{ stat }} type day enable
{% endfor %}
2019-06-05 15:38:18 +02:00
{% endif %}