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
|
||||
|
||||
- name: config time server
|
||||
template:
|
||||
src: chrony/chrony.conf.j2
|
||||
copy:
|
||||
src: chrony/chrony.conf
|
||||
dest: /etc/chrony.conf
|
||||
|
||||
- name: disable chrony ipv6
|
||||
replace:
|
||||
path: /etc/sysconfig/chronyd
|
||||
regexp: '^OPTIONS=""'
|
||||
replace: 'OPTIONS="-4"'
|
||||
copy:
|
||||
src: chrony/chronyd
|
||||
dest: /etc/sysconfig/chronyd
|
||||
#replace:
|
||||
# path: /etc/sysconfig/chronyd
|
||||
# regexp: '^OPTIONS=""'
|
||||
# replace: 'OPTIONS="-4"'
|
||||
|
||||
- name: start and active service chronyd
|
||||
systemd:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user