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