mirror of https://github.com/easzlab/kubeasz.git
commit
550c8f22f2
|
@ -147,5 +147,7 @@
|
||||||
- lb
|
- lb
|
||||||
tasks:
|
tasks:
|
||||||
- name: 清理自动生成的PATH
|
- name: 清理自动生成的PATH
|
||||||
shell: sed -i '/kubeasz/d' /etc/profile
|
lineinfile:
|
||||||
ignore_errors: true
|
dest: /etc/profile
|
||||||
|
state: absent
|
||||||
|
regexp: 'kubeasz'
|
||||||
|
|
|
@ -7,8 +7,10 @@
|
||||||
- /etc/docker
|
- /etc/docker
|
||||||
|
|
||||||
- name: 写入环境变量$PATH
|
- name: 写入环境变量$PATH
|
||||||
shell: "sed -i '/kubeasz/d' /etc/profile && \
|
lineinfile:
|
||||||
echo export PATH={{ bin_dir }}:\\$PATH >> /etc/profile \\# generated by kubeasz"
|
dest: /etc/profile
|
||||||
|
regexp: 'kubeasz'
|
||||||
|
line: 'export PATH={{ bin_dir }}:$PATH # generated by kubeasz'
|
||||||
|
|
||||||
- name: 下载证书工具 CFSSL和 kubectl
|
- name: 下载证书工具 CFSSL和 kubectl
|
||||||
copy: src={{ base_dir }}/bin/{{ item }} dest={{ bin_dir }}/{{ item }} mode=0755
|
copy: src={{ base_dir }}/bin/{{ item }} dest={{ bin_dir }}/{{ item }} mode=0755
|
||||||
|
|
Loading…
Reference in New Issue