From bbf4dc8c998127e59f1786f629deb132f1658442 Mon Sep 17 00:00:00 2001 From: lusyoe Date: Fri, 12 Oct 2018 20:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85chrony=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E5=B7=B2=E5=8D=B8=E8=BD=BDntp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/chrony/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/chrony/tasks/main.yml b/roles/chrony/tasks/main.yml index b4308e7..b7604a8 100644 --- a/roles/chrony/tasks/main.yml +++ b/roles/chrony/tasks/main.yml @@ -2,6 +2,9 @@ apt: update_cache=yes cache_valid_time=72000 when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 16 +- name: 确保已卸载ntp + package: name=ntp state=absent + - name: 安装 chrony package: name=chrony state=latest