18 lines
307 B
YAML
18 lines
307 B
YAML
---
|
|
- hosts: apt
|
|
|
|
tasks:
|
|
|
|
- name: Install NTP
|
|
apt: name=ntp state=latest
|
|
|
|
- name: Copy ntp.conf
|
|
copy: src=ntp.conf dest=/etc/ntp.conf backup=yes
|
|
|
|
- name: Restart NTP
|
|
service: name=ntp state=restarted
|
|
|
|
- name: Enable NTP
|
|
service: name=ntp enabled=yes state=started
|
|
|