2
0
mirror of https://github.com/schnidrig/openhab-ansible synced 2026-01-12 00:48:46 +01:00
Files
openhab-ansible/roles/raspberry/tasks/timedate.yml
Christian Schnidrig 0c652dfbd2 openhab 2.5 on raspi4
2020-01-01 20:34:53 +01:00

14 lines
254 B
YAML

---
- 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