1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-08 09:42:45 +02:00

Update time

This commit is contained in:
Lilian Roller 2019-06-05 15:38:18 +02:00
parent 6abf006451
commit 83cb996165
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 11 additions and 7 deletions

View file

@ -11,6 +11,8 @@ ntp_restrict:
# Ntp server to use for date synchronization
# Default is worldwide pool
ntp_servers:
- ptbtime1.ptb.de
- ptbtime3.ptb.de
- 0.pool.ntp.org iburst
- 1.pool.ntp.org iburst
- 2.pool.ntp.org iburst

View file

@ -2,18 +2,20 @@
## ##
## THIS FILE IS MANAGED BY ANSIBLE ##
## ##
## It is about time ##
## ##
#####################################
driftfile {{ ntp_driftfile }}
{%- for restrict_ip in ntp_restrict -%}
{% for restrict_ip in ntp_restrict %}
restrict {{ restrict_ip }}
{%- endfor -%}
{% endfor %}
{%- for pool_server in ntp_servers -%}
{% for pool_server in ntp_servers %}
server {{ pool_server }}
{%- endfor -%}
{% endfor %}
{%- if ntp_statistics -%}
{% if ntp_statistics | bool %}
statistics clockstats cryptostats loopstats peerstats
{%- endif -%}
{% endif %}

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 101
playbook_version_number: 102
playbook_version_path: '/etc/ansible-version/role-ntp_chaos-bodensee_github.com.version'