diff --git a/ansible/configure-server.yml b/ansible/configure-server.yml index 0d24c49..6aa2277 100644 --- a/ansible/configure-server.yml +++ b/ansible/configure-server.yml @@ -74,6 +74,7 @@ group: root mode: 0644 notify: restart chrony + tags: chrony - name: Enable chrony service: diff --git a/ansible/files/chrony.conf.j2 b/ansible/files/chrony.conf.j2 index ae2f71f..7b6f5ad 100644 --- a/ansible/files/chrony.conf.j2 +++ b/ansible/files/chrony.conf.j2 @@ -5,18 +5,7 @@ # want to enable. The more obscure options are not included. Refer # 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 @@ -27,11 +16,9 @@ # you can access at http://support.ntp.org/bin/view/Servers/WebHome or # 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 +server ntp11.metas.ch +server ntp-p1.obspm.fr pool 2.arch.pool.ntp.org iburst {% if ansible_hostname == "chronos" %} @@ -330,4 +317,4 @@ rtcsync # for extreme clock stability. Works only on Linux. Note that the "-m" # command-line switch will also enable this feature. -! lock_all +lock_all