conf chrony
This commit is contained in:
parent
e6b2e7872a
commit
9ba0ab95d7
2
files/chrony/chronyd
Normal file
2
files/chrony/chronyd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Command-line options for chronyd
|
||||||
|
OPTIONS="-4 -F 2"
|
||||||
@ -8,15 +8,18 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: config time server
|
- name: config time server
|
||||||
template:
|
copy:
|
||||||
src: chrony/chrony.conf.j2
|
src: chrony/chrony.conf
|
||||||
dest: /etc/chrony.conf
|
dest: /etc/chrony.conf
|
||||||
|
|
||||||
- name: disable chrony ipv6
|
- name: disable chrony ipv6
|
||||||
replace:
|
copy:
|
||||||
path: /etc/sysconfig/chronyd
|
src: chrony/chronyd
|
||||||
regexp: '^OPTIONS=""'
|
dest: /etc/sysconfig/chronyd
|
||||||
replace: 'OPTIONS="-4"'
|
#replace:
|
||||||
|
# path: /etc/sysconfig/chronyd
|
||||||
|
# regexp: '^OPTIONS=""'
|
||||||
|
# replace: 'OPTIONS="-4"'
|
||||||
|
|
||||||
- name: start and active service chronyd
|
- name: start and active service chronyd
|
||||||
systemd:
|
systemd:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user