summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/ntp.yml
blob: f9a01c865f91e903fa835e11de2c00ad1ab7f3bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Install ntp
  apt: pkg=ntp

- name: Configure ntp
  template: src=etc/ntp.conf.j2
            dest=/etc/ntp.conf
            owner=root group=root
            mode=0644
  notify:
    - Restart ntp

- meta: flush_handlers

- name: Start ntp
  service: name=ntp state=started