fix 清理脚本清理环境变量

pull/245/head
gjmzj 2018-07-02 16:48:26 +08:00
parent 4f82c79fa2
commit 0dd9ef7845
2 changed files with 10 additions and 15 deletions

View File

@ -153,11 +153,8 @@
lineinfile: lineinfile:
dest: ~/.bashrc dest: ~/.bashrc
state: absent state: absent
regexp: 'kubeasz' regexp: '{{ item }}'
with_items:
- name: 清理 kubectl 命令自动补全 - 'kubeasz'
lineinfile: - 'helm'
dest: ~/.bashrc - 'kubectl completion'
state: absent
regexp: 'kubectl completion'

View File

@ -154,13 +154,11 @@
lineinfile: lineinfile:
dest: ~/.bashrc dest: ~/.bashrc
state: absent state: absent
regexp: 'kubeasz' regexp: '{{ item }}'
with_items:
- name: 清理 kubectl 命令自动补全 - 'kubeasz'
lineinfile: - 'helm'
dest: ~/.bashrc - 'kubectl completion'
state: absent
regexp: 'kubectl completion'
# 执行kubectl delete(节点可能是kube-node节点) # 执行kubectl delete(节点可能是kube-node节点)
- hosts: deploy - hosts: deploy