ansible-edda/playbooks/roles/system/base/tasks/include/ntp.yml

15 lines
324 B
YAML

---
- name: "ntp : install systemd-timesyncd"
ansible.builtin.apt:
name: "systemd-timesyncd"
- name: "ntp : enable systemd-timesyncd"
ansible.builtin.systemd:
name: "systemd-timesyncd"
enabled: true
state: started
- name: "ntp : set timezone"
community.general.timezone:
name: "Europe/Amsterdam"