diff --git a/99.clean.yml b/99.clean.yml index dc1a0bc..31f0cd5 100644 --- a/99.clean.yml +++ b/99.clean.yml @@ -153,11 +153,8 @@ lineinfile: dest: ~/.bashrc state: absent - regexp: 'kubeasz' - - - name: 清理 kubectl 命令自动补全 - lineinfile: - dest: ~/.bashrc - state: absent - regexp: 'kubectl completion' - + regexp: '{{ item }}' + with_items: + - 'kubeasz' + - 'helm' + - 'kubectl completion' diff --git a/tools/clean_one_node.yml b/tools/clean_one_node.yml index 3d12789..f6a9f3c 100644 --- a/tools/clean_one_node.yml +++ b/tools/clean_one_node.yml @@ -154,13 +154,11 @@ lineinfile: dest: ~/.bashrc state: absent - regexp: 'kubeasz' - - - name: 清理 kubectl 命令自动补全 - lineinfile: - dest: ~/.bashrc - state: absent - regexp: 'kubectl completion' + regexp: '{{ item }}' + with_items: + - 'kubeasz' + - 'helm' + - 'kubectl completion' # 执行kubectl delete(节点可能是kube-node节点) - hosts: deploy