flutter, fix lint issues.
This commit is contained in:
@@ -92,7 +92,7 @@
|
|||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Flutter | Download SDK
|
- name: Workstation | Linux | Software | Flutter | Download SDK
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ flutter_url }}"
|
url: "{{ flutter_url }}"
|
||||||
dest: "{{ flutter_download_file }}"
|
dest: "{{ flutter_download_file }}"
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Flutter | Extract SDK
|
- name: Workstation | Linux | Software | Flutter | Extract SDK
|
||||||
unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "{{ flutter_download_file }}"
|
src: "{{ flutter_download_file }}"
|
||||||
dest: "{{ flutter_sdk_location }}"
|
dest: "{{ flutter_sdk_location }}"
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
@@ -137,10 +137,10 @@
|
|||||||
state: absent
|
state: absent
|
||||||
create: true
|
create: true
|
||||||
backup: true
|
backup: true
|
||||||
|
mode: "0755"
|
||||||
loop:
|
loop:
|
||||||
- "{{ user_root.home }}"
|
- "{{ user_root.home }}"
|
||||||
- "{{ user_user.home }}"
|
- "{{ user_user.home }}"
|
||||||
ignore_errors: true
|
|
||||||
when: coding
|
when: coding
|
||||||
and user_root.home != ""
|
and user_root.home != ""
|
||||||
and user_user.home != ""
|
and user_user.home != ""
|
||||||
@@ -154,10 +154,10 @@
|
|||||||
state: absent
|
state: absent
|
||||||
create: true
|
create: true
|
||||||
backup: true
|
backup: true
|
||||||
|
mode: "0755"
|
||||||
loop:
|
loop:
|
||||||
- "{{ user_root.home }}"
|
- "{{ user_root.home }}"
|
||||||
- "{{ user_user.home }}"
|
- "{{ user_user.home }}"
|
||||||
ignore_errors: true
|
|
||||||
when: coding
|
when: coding
|
||||||
and user_root.home != ""
|
and user_root.home != ""
|
||||||
and user_user.home != ""
|
and user_user.home != ""
|
||||||
@@ -171,10 +171,10 @@
|
|||||||
state: present
|
state: present
|
||||||
create: true
|
create: true
|
||||||
backup: true
|
backup: true
|
||||||
|
mode: "0755"
|
||||||
loop:
|
loop:
|
||||||
- ".bash_profile"
|
- ".bash_profile"
|
||||||
- ".zprofile"
|
- ".zprofile"
|
||||||
ignore_errors: true
|
|
||||||
when: coding
|
when: coding
|
||||||
and user_user.home != ""
|
and user_user.home != ""
|
||||||
|
|
||||||
@@ -185,6 +185,8 @@
|
|||||||
loop: "{{ flutter_report_commands }}"
|
loop: "{{ flutter_report_commands }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
register: shell_check
|
||||||
|
changed_when: shell_check.rc == 0
|
||||||
when: coding
|
when: coding
|
||||||
|
|
||||||
## Uninstall SDK ##
|
## Uninstall SDK ##
|
||||||
|
|||||||
Reference in New Issue
Block a user