ansible-playbooks/roles/core/tasks/time.yml

20 lines
288 B
YAML

---
- name: Set timezone to America/Toronto
timezone:
name: America/Toronto
- name: Install ntp
apt:
name: ntp
cache_valid_time: 3600
notify:
- Start ntp
- name: Copy ntp configuration
copy:
src: ntp.conf
dest: /etc/ntp.conf
notify:
- Restart ntp