fix custom PATH settings

pull/1171/head
jin.gjm 2022-07-10 10:09:07 +08:00
parent 9c61334be8
commit 435e44caae
2 changed files with 8 additions and 1 deletions

View File

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

View File

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