- 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