aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/ntp.yml
blob: 219cdb501bc8af29ca235b688ed32fbf8d6c67d7 (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: name=ntp state=present
  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