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:
dest: ~/.bashrc
state: absent
regexp: 'kubeasz'
- name: 清理 kubectl 命令自动补全
lineinfile:
dest: ~/.bashrc
state: absent
regexp: 'kubectl completion'
regexp: '{{ item }}'
with_items:
- 'kubeasz'
- 'helm'
- 'kubectl completion'

View File

@ -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