mirror of
https://github.com/roles-ansible/ansible_role_ntp.git
synced 2024-08-16 12:59:49 +02:00
Update time
This commit is contained in:
parent
6abf006451
commit
83cb996165
3 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue