mirror of
https://github.com/schnidrig/openhab-ansible
synced 2026-01-12 00:48:46 +01:00
openhab 2.5 on raspi4
This commit is contained in:
13
roles/raspberry/tasks/timedate.yml
Normal file
13
roles/raspberry/tasks/timedate.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
- name: update ntp.conf
|
||||
lineinfile:
|
||||
dest: "/etc/systemd/timesyncd.conf"
|
||||
regexp: '^#*\s*NTP='
|
||||
line: "NTP={{ ntp | join(' ') }}"
|
||||
notify: timedatectl
|
||||
|
||||
- name: "set Timezone"
|
||||
timezone:
|
||||
name: "{{ timezone }}"
|
||||
notify: timedatectl
|
||||
Reference in New Issue
Block a user