test ntp
This commit is contained in:
parent
5e34685a07
commit
169caf0b6b
1 changed files with 3 additions and 6 deletions
|
@ -10,12 +10,9 @@
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Configure timesyncd to use the router's NTP server using ini_file
|
- name: Configure timesyncd to use the router's NTP server
|
||||||
ini_file:
|
shell: sed -i '/^NTP=/c\NTP=10.0.0.1' /etc/systemd/timesyncd.conf
|
||||||
path: /etc/systemd/timesyncd.conf
|
|
||||||
section: Time
|
|
||||||
option: NTP
|
|
||||||
value: '10.0.0.1'
|
|
||||||
|
|
||||||
- name: Restart systemd-timesyncd to apply changes
|
- name: Restart systemd-timesyncd to apply changes
|
||||||
systemd:
|
systemd:
|
||||||
|
|
Loading…
Reference in a new issue