waydroid: small simplification

This commit is contained in:
Hoang Nguyen 2022-10-23 01:29:06 +07:00
parent 39f736f34c
commit b9f11723de
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
1 changed files with 3 additions and 7 deletions

View File

@ -5,14 +5,10 @@
name: waydroid
state: present
- name: waydroid | Check whether base image is downloaded
stat:
path: /var/lib/waydroid/image/system.img
register: waydroid_image_check
- name: waydroid | Download base image and initialize
command: 'waydroid init -s {{ waydroid.system_type }} -r {{ waydroid.rom_type }}'
when: not waydroid_image_check.exists
command:
cmd: 'waydroid init -s {{ waydroid.system_type }} -r {{ waydroid.rom_type }}'
creates: /var/lib/waydroid/image/system.img
- name: waydroid | Add apparmor rules
blockinfile: