chrony: add S1 servers as backup

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-06-13 23:45:26 +02:00
parent edf8bd6280
commit f2841ed288
2 changed files with 5 additions and 17 deletions

View file

@ -74,6 +74,7 @@
group: root group: root
mode: 0644 mode: 0644
notify: restart chrony notify: restart chrony
tags: chrony
- name: Enable chrony - name: Enable chrony
service: service:

View file

@ -5,18 +5,7 @@
# want to enable. The more obscure options are not included. Refer # want to enable. The more obscure options are not included. Refer
# to the documentation for these. # to the documentation for these.
# #
#######################################################################
### COMMENTS
# Any of the following lines are comments (you have a choice of
# comment start character):
# a comment
% a comment
! a comment
; a comment
#
# Below, the '!' form is used for lines that you might want to
# uncomment and edit to make your own chrony.conf file.
#
####################################################################### #######################################################################
####################################################################### #######################################################################
### SPECIFY YOUR NTP SERVERS ### SPECIFY YOUR NTP SERVERS
@ -27,11 +16,9 @@
# you can access at http://support.ntp.org/bin/view/Servers/WebHome or # you can access at http://support.ntp.org/bin/view/Servers/WebHome or
# you can use servers from the pool.ntp.org project. # you can use servers from the pool.ntp.org project.
! server ntp1.example.net iburst
! server ntp2.example.net iburst
! server ntp3.example.net iburst
pool pool.ntp.infomaniak.ch iburst pool pool.ntp.infomaniak.ch iburst
server ntp11.metas.ch
server ntp-p1.obspm.fr
pool 2.arch.pool.ntp.org iburst pool 2.arch.pool.ntp.org iburst
{% if ansible_hostname == "chronos" %} {% if ansible_hostname == "chronos" %}
@ -330,4 +317,4 @@ rtcsync
# for extreme clock stability. Works only on Linux. Note that the "-m" # for extreme clock stability. Works only on Linux. Note that the "-m"
# command-line switch will also enable this feature. # command-line switch will also enable this feature.
! lock_all lock_all