mirror of https://github.com/easzlab/kubeasz.git
fix custom PATH settings
parent
9c61334be8
commit
435e44caae
|
@ -55,3 +55,10 @@
|
|||
- name: ansible 控制端创建 kubectl 软链接
|
||||
file: src={{ base_dir }}/bin/kubectl dest=/usr/bin/kubectl state=link
|
||||
ignore_errors: true
|
||||
|
||||
- name: 写入环境变量$PATH
|
||||
lineinfile:
|
||||
dest: ~/.bashrc
|
||||
state: present
|
||||
regexp: 'custom PATH'
|
||||
line: 'export PATH={{ base_dir }}/bin/:$PATH # generated by kubeasz:custom PATH'
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
dest: ~/.bashrc
|
||||
state: present
|
||||
regexp: 'custom PATH'
|
||||
line: 'export PATH={{ base_dir }}/bin/:$PATH # generated by kubeasz:custom PATH'
|
||||
line: 'export PATH={{ bin_dir }}:$PATH # generated by kubeasz:custom PATH'
|
||||
|
||||
- name: ansible 控制端写入命令别名
|
||||
lineinfile:
|
||||
|
|
Loading…
Reference in New Issue