fix ntp
This commit is contained in:
parent
2f582b838d
commit
60ac705983
1 changed files with 5 additions and 2 deletions
|
@ -11,8 +11,11 @@
|
|||
update_cache: no
|
||||
|
||||
- name: Configure timesyncd to use the router's NTP server
|
||||
shell: sed -i '/^NTP=/c\NTP=10.0.0.1' /etc/systemd/timesyncd.conf
|
||||
|
||||
lineinfile:
|
||||
path: /etc/systemd/timesyncd.conf
|
||||
regexp: '^NTP='
|
||||
line: 'NTP=10.0.0.1'
|
||||
insertafter: '^\[Time\]'
|
||||
|
||||
- name: Restart systemd-timesyncd to apply changes
|
||||
systemd:
|
||||
|
|
Loading…
Reference in a new issue