minor fix in 99.clean.yml

pull/349/head
gjmzj 2018-10-11 11:01:15 +08:00
parent 333b56cea1
commit f483d7ec66
1 changed files with 11 additions and 5 deletions

View File

@ -17,6 +17,8 @@
- name: umount kubelet filesystems - name: umount kubelet filesystems
shell: "mount | grep '/var/lib/kubelet'| awk '{print $3}'|xargs umount" shell: "mount | grep '/var/lib/kubelet'| awk '{print $3}'|xargs umount"
args:
warn: false
ignore_errors: true ignore_errors: true
- name: remove files and dirs of 'kube-node' nodes - name: remove files and dirs of 'kube-node' nodes
@ -170,13 +172,17 @@
- etcd - etcd
- lb - lb
tasks: tasks:
- name: stop and disable chrony - name: stop and disable chrony in Ubuntu
service: name={{ item }} state=stopped enabled=no service: name=chrony state=stopped enabled=no
with_items:
- chrony
- chronyd
ignore_errors: true ignore_errors: true
tags: rm_ntp tags: rm_ntp
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
- name: stop and disable chronyd in CentOS
service: name=chronyd state=stopped enabled=no
ignore_errors: true
tags: rm_ntp
when: ansible_distribution == "CentOS"
- name: clean certs and keys - name: clean certs and keys
file: name={{ item }} state=absent file: name={{ item }} state=absent