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

16 lines
209 B
YAML

---
- 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