Skip to content

Commit

Permalink
fix add chrony
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Aug 17, 2018
1 parent 67ca82d commit 7054b57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions 11.harbor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- hosts: harbor
roles:
- { role: chrony, when: "hostvars[groups.deploy[0]]['NTP_ENABLED'] == 'yes'" }
- prepare
- docker
- harbor
Expand Down
8 changes: 8 additions & 0 deletions 99.clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7054b57

Please sign in to comment.