Create shortcut for updating SDKs. Remove updating Android SDK from its playbook.

This commit is contained in:
Hyperling 2025-02-26 10:10:04 -07:00
parent 02c153d260
commit af13e2c3a4
2 changed files with 17 additions and 5 deletions

View File

@ -596,6 +596,22 @@
alias lockup="kill-system"
alias freeze="kill-system"
alias system-killer="kill-system"
function_update_sdks: |
if [[ "{{ coding }}" == "true" ]]; then
function update-sdks {
echo -e "******* Update SDKs *******\n*** Android ***"
yes | sdkmanager --update
yes | sdkmanager --licenses
echo "\n*** Flutter ***"
flutter upgrade
yes | flutter doctor --android-licenses
echo -e "\n******* Done! *******"
}
alias update-sdk="update-sdks"
alias sdk-update="update-sdks"
fi
- name: General | Account Management | Users | Files | Common Variable
set_fact:
@ -643,6 +659,7 @@
{{ function_clean_code }}
{{ alias_kill_battery }}
{{ alias_kill_system }}
{{ function_update_sdks }}
- name: General | Account Management | Users | Files | .bashrc
blockinfile:

View File

@ -141,11 +141,6 @@
become_user: "{{ user }}"
when: coding == true
- name: Workstation | Linux | Software | Android | Update Modules
shell: "yes | {{ android_sdkmanager_final }} --update --sdk_root={{ android_sdk_location }}"
become_user: "{{ user }}"
when: coding == true
- name: Workstation | Linux | Software | Android | Inform Flutter
shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}"
become_user: "{{ user }}"