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 - hosts: harbor
roles: roles:
- { role: chrony, when: "hostvars[groups.deploy[0]]['NTP_ENABLED'] == 'yes'" }
- prepare - prepare
- docker - docker
- harbor - harbor

View File

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