flutter, fix PATH for interactive sessions.
This commit is contained in:
1 parent
2bdf59286d
commit
5b8d9dd6de
1 file changed
+19
-2
@@ -136,7 +136,24 @@
|
|||||||
|
|
||||||
## Configure Environment ##
|
## Configure Environment ##
|
||||||
|
|
||||||
|
# TBD: Remove after 2027-02-01.
|
||||||
- name: Workstation | Linux | Software | Flutter | Modify PATH (profiles)
|
- name: Workstation | Linux | Software | Flutter | Modify PATH (profiles)
|
||||||
|
ansible.builtin.blockinfile:
|
||||||
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
|
block: |
|
||||||
|
export FLUTTER_HOME="{{ flutter_home }}"
|
||||||
|
export PATH="{{ flutter_bin }}:$PATH"
|
||||||
|
marker: '# {mark} MANAGED BY ANSIBLE | Flutter'
|
||||||
|
state: absent
|
||||||
|
create: true
|
||||||
|
backup: true
|
||||||
|
mode: "0755"
|
||||||
|
loop:
|
||||||
|
- ".bash_profile"
|
||||||
|
- ".zprofile"
|
||||||
|
when: user_user.home != ""
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | Flutter | Modify PATH (rc)
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: "{{ user_user.home }}/{{ item }}"
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
block: |
|
block: |
|
||||||
@@ -148,8 +165,8 @@
|
|||||||
backup: true
|
backup: true
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
loop:
|
loop:
|
||||||
- ".bash_profile"
|
- ".bashrc"
|
||||||
- ".zprofile"
|
- ".zshrc"
|
||||||
- ".profile"
|
- ".profile"
|
||||||
when: user_user.home != ""
|
when: user_user.home != ""
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user