NTP-Server Setup auf srv04.
This commit is contained in:
commit
204285bd14
7 changed files with 72 additions and 0 deletions
14
roles/ntp-server/tasks/main.yml
Normal file
14
roles/ntp-server/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: be sure ntp is installed
|
||||
apt: name=ntp state=latest
|
||||
tags: ntp
|
||||
|
||||
- name: be sure ntp is configured
|
||||
template: src=ntp.conf.j2 dest=/etc/ntp.conf
|
||||
notify:
|
||||
- restart ntpd
|
||||
tags: ntp
|
||||
|
||||
- name: be sure ntpd is running and enabled
|
||||
service: name=ntp state=started enabled=yes
|
||||
tags: ntp
|
Loading…
Add table
Add a link
Reference in a new issue