ansible-desktop/roles/flutter/tasks/main.yml
Przemek Grondek 10ff873b4a Update flutter role
Install system-image
Set android-sdk dir in flutter
2023-08-20 16:19:19 +02:00

25 lines
512 B
YAML

- name: install jmespath for json_query
become: yes
apt:
pkg:
- python3-jmespath
- name: Check if android-sdk has been installed
stat:
path: "{{ android.dir }}"
register: android_sdk_dir_status
- import_tasks: install-android-sdk.yml
when:
- not android_sdk_dir_status.stat.exists
- name: Check if flutter has been installed
stat:
path: "{{ flutter.dir }}"
register: flutter_dir_status
- import_tasks: install-flutter.yml
when:
- not flutter_dir_status.stat.exists