flutter, ensure permissions are correct for pub -cache folder.
This commit is contained in:
1 parent
aa9ccbfd54
commit
3bc2185962
1 file changed
+15
-8
@@ -46,6 +46,9 @@
|
||||
get_mime: false
|
||||
register: flutter_download_stat
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Install Block
|
||||
block:
|
||||
|
||||
## Packages ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Necessities
|
||||
@@ -59,7 +62,6 @@
|
||||
- "{{ mesa }}"
|
||||
- "{{ mesa_utils }}"
|
||||
state: present
|
||||
when: coding
|
||||
|
||||
# https://docs.flutter.dev/get-started/install/linux/desktop
|
||||
- name: Workstation | Linux | Software | Flutter | Linux App Dependencies
|
||||
@@ -74,7 +76,6 @@
|
||||
- "{{ xz_libs }}"
|
||||
- "{{ cpp }}"
|
||||
state: present
|
||||
when: coding
|
||||
|
||||
# https://docs.flutter.dev/get-started/install/linux/android
|
||||
- name: Workstation | Linux | Software | Flutter | Android App Dependencies
|
||||
@@ -85,13 +86,21 @@
|
||||
- "{{ z_libs }}"
|
||||
- "{{ bzip }}"
|
||||
state: present
|
||||
when: coding
|
||||
|
||||
## Install SDK ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | SDK
|
||||
block:
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Pub Cache Permissions
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_user.home }}/.pub-cache"
|
||||
state: directory
|
||||
owner: "{{ user }}"
|
||||
group: "{{ user }}"
|
||||
mode: "0755"
|
||||
when: user_user.home != ""
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Download SDK
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ flutter_url }}"
|
||||
@@ -118,14 +127,12 @@
|
||||
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
and not flutter_sdk_stat.stat.exists
|
||||
when: not flutter_sdk_stat.stat.exists
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Delete Archive
|
||||
ansible.builtin.file:
|
||||
path: "{{ flutter_download_file }}"
|
||||
state: absent
|
||||
when: coding
|
||||
|
||||
## Configure Environment ##
|
||||
|
||||
@@ -144,8 +151,7 @@
|
||||
- ".bash_profile"
|
||||
- ".zprofile"
|
||||
- ".profile"
|
||||
when: coding
|
||||
and user_user.home != ""
|
||||
when: user_user.home != ""
|
||||
|
||||
## Test SDK ##
|
||||
|
||||
@@ -156,6 +162,7 @@
|
||||
become_user: "{{ user }}"
|
||||
register: shell_check
|
||||
changed_when: shell_check.rc == 0
|
||||
|
||||
when: coding
|
||||
|
||||
## Uninstall SDK ##
|
||||
|
||||
Reference in new issue
Block a user