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

20 lines
298 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
2020-01-28 20:03:20 +00:00
become: true
become_user: root
2019-12-08 21:17:30 +00:00
- name: Enable NTP service
systemd:
name: ntp
enabled: true
state: started
2020-02-02 20:19:51 +00:00
become: true
become_user: root