flutter, remove PATH changes from user and root rc files and put in user's profile files.

This commit is contained in:
me
2026-10-02 19:20:36 -07:00
parent 48bf1d542f
commit 08b60b62b6
+18 -5
View File
@@ -128,16 +128,13 @@
## Configure Environment ## ## Configure Environment ##
# # Flutter, TBD/TODO for ~/.bash_profile and ~/.zprofile.
# export PATH="$PATH:$HOME/development/flutter/bin"
- name: Workstation | Linux | Software | Flutter | Modify PATH (.bashrc) - name: Workstation | Linux | Software | Flutter | Modify PATH (.bashrc)
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: "{{ item }}/.bashrc" path: "{{ item }}/.bashrc"
block: | block: |
export PATH="$PATH:{{ flutter_bin_location }}" export PATH="$PATH:{{ flutter_bin_location }}"
marker: '# {mark} MANAGED BY ANSIBLE | Flutter' marker: '# {mark} MANAGED BY ANSIBLE | Flutter'
state: present state: absent
create: true create: true
backup: true backup: true
loop: loop:
@@ -154,7 +151,7 @@
block: | block: |
export PATH="$PATH:{{ flutter_bin_location }}" export PATH="$PATH:{{ flutter_bin_location }}"
marker: '# {mark} MANAGED BY ANSIBLE | Flutter' marker: '# {mark} MANAGED BY ANSIBLE | Flutter'
state: present state: absent
create: true create: true
backup: true backup: true
loop: loop:
@@ -165,6 +162,22 @@
and user_root.home != "" and user_root.home != ""
and user_user.home != "" and user_user.home != ""
- name: Workstation | Linux | Software | Flutter | Modify PATH (profiles)
ansible.builtin.blockinfile:
path: "{{ user_user.home }}/{{ item }}"
block: |
export PATH="$PATH:{{ flutter_bin_location }}"
marker: '# {mark} MANAGED BY ANSIBLE | Flutter'
state: present
create: true
backup: true
loop:
- ".bash_profile"
- ".zprofile"
ignore_errors: true
when: coding
and user_user.home != ""
## Test SDK ## ## Test SDK ##
- name: Workstation | Linux | Software | Flutter | Doctor Report - name: Workstation | Linux | Software | Flutter | Doctor Report