adds channel parameter

This commit is contained in:
Stanislav Shamilov
2024-12-07 16:24:58 +02:00
parent 97b07eebba
commit b41eb5744e
4 changed files with 43 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
- name: delete_newroot
file:
path: "{{ newroot.path }}"
state: absent

View File

@@ -62,6 +62,7 @@
path: "{{ ansible_env.HOME }}/newroot"
state: directory
register: newroot
notify: delete_newroot
- name: Accept licenses in the new root
shell: "yes | sdkmanager --sdk_root={{ newroot.path }} --licenses"
@@ -78,6 +79,13 @@
path: "{{ newroot.path }}/build-tools/34.0.0"
register: new_root_package_stat
- name: Install a package from canary channel
android_sdk:
name: build-tools;33.0.0
state: present
channel: canary
register: package_canary
- name: Run tests
assert:
that:
@@ -89,4 +97,5 @@
- not platform_tools_present.changed
- platform_tools_updated.changed
- new_root_package.changed
- new_root_package_stat.stat.exists
- new_root_package_stat.stat.exists
- package_canary.changed