aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/ntp.yml
blob: c1489fd647aa75e7f51ffc4eda3ca999ea567763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
# Defines tasks applicable for NTP (Network Time Protocol)

- name: Install ntp
  apt: pkg=ntp state=installed
  tags:
    - dependencies

- name: Configure ntp
  template: src=ntp.conf.j2 dest=/etc/ntp.conf
  notify:
    - restart ntp

- name: Ensure ntpd is running and enabled
  service: name=ntp state=started enabled=yes