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

34 lines
1 KiB
Django/Jinja

######################################################
## ##
## THIS FILE IS MANAGED BY ANSIBLE ##
## ##
## It is about time ##
## ##
######################################################
# > galaxy.ansible.com/ui/repo/published/l3d/time/ < #
driftfile {{ ntp_driftfile }}
{% if ntp_leap %}
# Leap seconds definition provided by tzdata
leapfile {{ ntp_leapfile }}
{% endif %}
{% for restrict_ip in ntp_restrict %}
restrict {{ restrict_ip }}
{% endfor %}
{% for pool_server in ntp_servers %}
server {{ pool_server }}
{% endfor %}
{% 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 %}
{% endif %}