mirror of https://github.com/easzlab/kubeasz.git
12 lines
430 B
YAML
12 lines
430 B
YAML
- block:
|
|
- name: stop and disable chrony in Ubuntu
|
|
service: name=chrony state=stopped enabled=no
|
|
ignore_errors: true
|
|
when: 'ansible_distribution in ["Ubuntu","Debian"]'
|
|
|
|
- name: stop and disable chronyd in CentOS/RedHat
|
|
service: name=chronyd state=stopped enabled=no
|
|
ignore_errors: true
|
|
when: 'ansible_distribution in ["CentOS","RedHat","Amazon"]'
|
|
when: "groups['chrony']|length > 0"
|