Migrate shell to FQCN.
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
|
||||
# This can only be run once, otherwise cmdline-tools creates latest-* folders.
|
||||
- name: Workstation | Linux | Software | Android | Install | Consistent Modules
|
||||
shell: "yes | {{ android_sdkmanager_temp }} --install '{{ item }}' --sdk_root={{ android_sdk_location }}"
|
||||
ansible.builtin.shell: "yes | {{ android_sdkmanager_temp }} --install '{{ item }}' --sdk_root={{ android_sdk_location }}"
|
||||
loop:
|
||||
# Current
|
||||
- cmdline-tools/latest
|
||||
@@ -256,7 +256,7 @@
|
||||
|
||||
# These are safe to run multiple times, and uses the new `latest` version.
|
||||
- name: Workstation | Linux | Software | Android | Install | Required Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -v 'unknown' | grep -q '{{ item }}' == 1 ]]; then
|
||||
yes | {{ android_sdkmanager2_install }} '{{ item }}'
|
||||
@@ -277,7 +277,7 @@
|
||||
|
||||
# Add more versions for testing across all the important platforms.
|
||||
- name: Workstation | Linux | Software | Android | Install | Additional Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -v 'unknown' | grep -q '{{ item }}' == 1 ]]; then
|
||||
yes | {{ android_sdkmanager2_install }} '{{ item }}'
|
||||
@@ -299,7 +299,7 @@
|
||||
|
||||
# Remove extra downloads if system is not meant for full amount of testing.
|
||||
- name: Workstation | Linux | Software | Android | Uninstall | Additional Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -q '{{ item }}' == 0 ]]; then
|
||||
yes | {{ android_sdkmanager2_remove }} '{{ item }}'
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
# Remove any versions which used to be part of this script and no longer used.
|
||||
- name: Workstation | Linux | Software | Android | Uninstall | Unused Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -q '{{ item }}' == 0 ]]; then
|
||||
yes | {{ android_sdkmanager2_remove }} '{{ item }}'
|
||||
@@ -342,7 +342,7 @@
|
||||
|
||||
# Report the currently installed packges.
|
||||
- name: Workstation | Linux | Software | Android | Report Modules
|
||||
shell: "{{ android_sdkmanager2_list }} --all > {{ android_report_file }}"
|
||||
ansible.builtin.shell: "{{ android_sdkmanager2_list }} --all > {{ android_report_file }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
@@ -350,25 +350,25 @@
|
||||
## Flutter and Licenses ##
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Inform Flutter
|
||||
shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}"
|
||||
ansible.builtin.shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | License Agreements [1/2]
|
||||
shell: "yes | {{ android_sdkmanager_final }} --licenses --sdk_root={{ android_sdk_location }}"
|
||||
ansible.builtin.shell: "yes | {{ android_sdkmanager_final }} --licenses --sdk_root={{ android_sdk_location }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | License Agreements [2/2]
|
||||
shell: "yes | {{ flutter }} doctor --android-licenses"
|
||||
ansible.builtin.shell: "yes | {{ flutter }} doctor --android-licenses"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Refresh Flutter Doctor Report
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop: "{{ flutter_report_commands }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
|
||||
Reference in New Issue
Block a user