mirror of https://github.com/easzlab/kubeasz.git
commit
e450fe30ca
11
99.clean.yml
11
99.clean.yml
|
@ -138,3 +138,14 @@
|
|||
- "{{ ca_dir }}"
|
||||
- "/root/.kube/"
|
||||
- "/etc/docker/"
|
||||
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- deploy
|
||||
- etcd
|
||||
- lb
|
||||
tasks:
|
||||
- name: 清理自动生成的PATH
|
||||
shell: sed -i '/kubeasz/d' /etc/profile
|
||||
ignore_errors: true
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
- /etc/docker
|
||||
|
||||
- name: 写入环境变量$PATH
|
||||
shell: "sed -i '/export PATH=/d' /etc/profile && \
|
||||
echo export PATH={{ bin_dir }}:$PATH >> /etc/profile"
|
||||
shell: "sed -i '/kubeasz/d' /etc/profile && \
|
||||
echo export PATH={{ bin_dir }}:\\$PATH >> /etc/profile \\# generated by kubeasz"
|
||||
|
||||
- name: 下载证书工具 CFSSL和 kubectl
|
||||
copy: src={{ base_dir }}/bin/{{ item }} dest={{ bin_dir }}/{{ item }} mode=0755
|
||||
|
|
Loading…
Reference in New Issue