infrastructure/ansible/roles/base/tasks/ntp.yml
2020-01-28 20:03:20 +00:00

17 lines
263 B
YAML

- name: "Install NTP"
apt:
name: "ntp"
become: true
become_user: root
- name: Set timezone
timezone:
name: Europe/London
become: true
become_user: root
- name: Enable NTP service
systemd:
name: ntp
enabled: true
state: started