Merge pull request 'NTP: deploy everywhere' (#97) from ntp into master
Reviewed-on: #97
This commit is contained in:
commit
a29a205576
4 changed files with 21 additions and 3 deletions
|
@ -13,4 +13,14 @@
|
||||||
- 3.pool.ntp.org
|
- 3.pool.ntp.org
|
||||||
roles:
|
roles:
|
||||||
- chronyd
|
- chronyd
|
||||||
|
|
||||||
|
- hosts:
|
||||||
|
- all
|
||||||
|
- "!ntp-1.int.infra.auro.re"
|
||||||
|
- "!unifi"
|
||||||
|
vars:
|
||||||
|
chronyd__pools:
|
||||||
|
- ntp-1.int.infra.auro.re
|
||||||
|
roles:
|
||||||
|
- chronyd
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Restart chronyd
|
- name: Restart chronyd
|
||||||
systemd:
|
systemd:
|
||||||
name: chronyd.service
|
name: chrony.service
|
||||||
state: restarted
|
state: restarted
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
---
|
---
|
||||||
|
- name: Uninstall ntp and sntp
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- sntp
|
||||||
|
- ntp
|
||||||
|
- systemd-timesyncd
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Install chronyd
|
- name: Install chronyd
|
||||||
apt:
|
apt:
|
||||||
name: chrony
|
name: chrony
|
||||||
|
@ -18,7 +26,7 @@
|
||||||
|
|
||||||
- name: Enable and start chronyd
|
- name: Enable and start chronyd
|
||||||
systemd:
|
systemd:
|
||||||
name: chronyd.service
|
name: chrony.service
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
...
|
...
|
||||||
|
|
|
@ -5,7 +5,7 @@ pool {{ pool }} iburst
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
keyfile {{ chronyd__key_file }}
|
keyfile {{ chronyd__key_file }}
|
||||||
dritfile {{ chronyd__drift_file }}
|
driftfile {{ chronyd__drift_file }}
|
||||||
ntsdumpdir {{ chronyd__nts_dump_dir }}
|
ntsdumpdir {{ chronyd__nts_dump_dir }}
|
||||||
|
|
||||||
log tracking measurements statistics
|
log tracking measurements statistics
|
||||||
|
|
Loading…
Reference in a new issue