安装chrony之前确保已卸载ntp

pull/349/head
lusyoe 2018-10-12 20:44:16 +08:00 committed by jmgao
parent 2e700c7ee1
commit bbf4dc8c99
1 changed files with 3 additions and 0 deletions

View File

@ -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