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

14 lines
320 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"