ansible-config/roles/ntp-server/tasks/main.yml

15 lines
304 B
YAML
Raw Normal View History

2015-08-29 22:27:47 +02:00
---
- name: be sure ntp is installed
apt: name=ntp state=latest
tags: ntp
- name: be sure ntp is configured
template: src=ntp.conf.j2 dest=/etc/ntp.conf
notify:
- restart ntpd
tags: ntp
- name: be sure ntpd is running and enabled
service: name=ntp state=started enabled=yes
tags: ntp