mirror of https://github.com/easzlab/kubeasz.git
fix add chrony
parent
67ca82d723
commit
7054b57dbf
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue