summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/ntp.yml
blob: 94d769655d31f0f0d8052ef5ec31739d56425910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- 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
  register: r
  notify:
    - Restart ntp

- name: Start ntp
  service: name=ntp state=started
  when: not r.changed

- meta: flush_handlers