update Chrony

This commit is contained in:
Yacine31
2021-06-20 20:45:37 +02:00
parent 9e27ebb863
commit 4a0afa4d7e

View File

@@ -15,7 +15,6 @@
- net-tools - net-tools
- ethtool - ethtool
- nscd - nscd
# - ntp
- sysstat - sysstat
- tree - tree
- unzip - unzip
@@ -36,17 +35,13 @@
sysctl: name=kernel.panic_on_oops value=1 state=present reload=yes ignoreerrors=yes sysctl: name=kernel.panic_on_oops value=1 state=present reload=yes ignoreerrors=yes
# --------------------------------------------------- # ---------------------------------------------------
# configuration du serveur NTPD # Installation du package chrony
# --------------------------------------------------- # ---------------------------------------------------
- name: Modification de la configuration NTP configuration (ajout du flag -x) - name: Installation du package chrony
lineinfile: dest=/etc/sysconfig/ntpd yum: name="chrony" state=installed
regexp='^OPTIONS='
line='OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"'
state=present
create=yes
# - name: restart ntpd - name: restart chronyd
# service: name=ntpd state=started enabled=yes service: name=chronyd state=started enabled=yes
# --------------------------------------------------- # ---------------------------------------------------
# configuration Linux : Selinux # configuration Linux : Selinux