NTP client/server, prepare slapd
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
23
roles/ntp-client-arch/tasks/main.yml
Normal file
23
roles/ntp-client-arch/tasks/main.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Queries package manager for ntp installation
|
||||
package:
|
||||
name: ntp
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
notify: restart ntpd.service
|
||||
|
||||
- name: Deploy ntp configuration
|
||||
template:
|
||||
src: 'ntp.conf.j2'
|
||||
dest: '/etc/ntp.conf'
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart ntpd.service
|
||||
|
||||
- name: Enable ntp service
|
||||
service:
|
||||
name: ntpd
|
||||
enabled: yes
|
Reference in New Issue
Block a user