mirror of https://github.com/easzlab/kubeasz.git
fix add chrony
parent
67ca82d723
commit
7054b57dbf
|
@ -1,5 +1,6 @@
|
|||
- hosts: harbor
|
||||
roles:
|
||||
- { role: chrony, when: "hostvars[groups.deploy[0]]['NTP_ENABLED'] == 'yes'" }
|
||||
- prepare
|
||||
- docker
|
||||
- harbor
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue