infrastructure/ansible/roles/base/tasks/ntp.yml

16 lines
228 B
YAML
Raw Normal View History

2019-12-08 21:17:30 +00:00
- name: "Install NTP"
apt:
name: "ntp"
become: true
become_user: root
- name: Set timezone
timezone:
name: Europe/London
- name: Enable NTP service
systemd:
name: ntp
enabled: true
state: started