fix add chrony

pull/296/head
gjmzj 2018-08-17 12:27:25 +08:00
parent 67ca82d723
commit 7054b57dbf
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
- hosts: harbor
roles:
- { role: chrony, when: "hostvars[groups.deploy[0]]['NTP_ENABLED'] == 'yes'" }
- prepare
- docker
- harbor

View File

@ -163,6 +163,14 @@
- hosts: all
tasks:
- name: stop and disable chrony
service: name={{ item }} state=stopped enabled=no
with_items:
- chrony
- chronyd
ignore_errors: true
tags: rm_ntp
- name: 清理证书目录和文件
file: name={{ item }} state=absent
with_items: