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
|
||||
update_cache: yes
|
||||
|
||||
- name: Configure timesyncd to use the router's NTP server using ini_file
|
||||
ini_file:
|
||||
path: /etc/systemd/timesyncd.conf
|
||||
section: Time
|
||||
option: NTP
|
||||
value: '10.0.0.1'
|
||||
- name: Configure timesyncd to use the router's NTP server
|
||||
shell: sed -i '/^NTP=/c\NTP=10.0.0.1' /etc/systemd/timesyncd.conf
|
||||
|
||||
|
||||
- name: Restart systemd-timesyncd to apply changes
|
||||
systemd:
|
||||
|
|
Loading…
Reference in a new issue