infrastructure/ansible/roles/base/tasks/ntp.yml
2020-02-02 20:19:51 +00:00

19 lines
298 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
become: true
become_user: root