-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflutter.yml
More file actions
35 lines (29 loc) · 869 Bytes
/
flutter.yml
File metadata and controls
35 lines (29 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# Flutter Installation Example
#
# Author: Assaf Feuerstein
#
# Quick example to install Flutter SDK.
#
# Usage:
# ansible-playbook flutter.yml -i hosts.ini -l mobile-mac-01
# ansible-playbook flutter.yml -i hosts.ini -e "flutter_version=3.22.0"
- name: Install Flutter SDK
hosts: all
remote_user: "{{ ansible_user | default('admin') }}"
gather_facts: yes
become: yes
vars:
flutter_version: "3.19.0"
build_user: "{{ build_user | default('buildagent') }}"
roles:
- role: flutter
post_tasks:
- name: Verify Flutter installation
shell: "{{ flutter_install_path | default('/usr/local/flutter') }}/bin/flutter --version"
register: flutter_result
become_user: "{{ build_user }}"
changed_when: false
- name: Display Flutter version
debug:
msg: "{{ flutter_result.stdout_lines }}"