deployment-playbooks/roles/preconf/tasks/ntp.yml

10 lines
199 B
YAML

---
- name: Install ntp package
apt: name={{ item }}
with_items:
- ntp
- ntpdate
- name: Ensure ntp is running and enabled to start at boot
service: name=ntp state=started enabled=yes