flutter, remove PATH changes from user and root rc files and put in user's profile files.
This commit is contained in:
@@ -126,10 +126,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: coding
|
when: coding
|
||||||
|
|
||||||
## 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:
|
||||||
@@ -137,7 +134,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:
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user