fix ntp
This commit is contained in:
parent
3ee1613978
commit
5e34685a07
1 changed files with 5 additions and 6 deletions
|
@ -10,13 +10,12 @@
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Configure timesyncd to use the router's NTP server
|
- name: Configure timesyncd to use the router's NTP server using ini_file
|
||||||
lineinfile:
|
ini_file:
|
||||||
path: /etc/systemd/timesyncd.conf
|
path: /etc/systemd/timesyncd.conf
|
||||||
regexp: '^NTP='
|
section: Time
|
||||||
line: 'NTP=10.0.0.1'
|
option: NTP
|
||||||
insertafter: '^\[Time\]'
|
value: '10.0.0.1'
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Restart systemd-timesyncd to apply changes
|
- name: Restart systemd-timesyncd to apply changes
|
||||||
systemd:
|
systemd:
|
||||||
|
|
Loading…
Add table
Reference in a new issue