blob: fae6d8e4c74f8344c0d6d1996407993df88df36c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
- name: remove ntp package
yum:
name: ntp
state: absent
- name: ensure chrony package is installed
yum:
name: chrony
state: installed
- name: Install /etc/chrony.conf
template:
src: chrony.conf.j2
dest: /etc/chrony.conf
owner: root
group: root
mode: 0644
notify:
- Restart chronyd
- name: enabled timedatectl set-ntp yes
timedatectl:
ntp: True
- name:
service:
name: chronyd
state: started
enabled: yes
|