16 lines
553 B
YAML
16 lines
553 B
YAML
---
|
|
- name: upload {{apk}}.apk.zip
|
|
copy: src=/gxfp/transfer/{{apk}}.apk.zip dest={{root_dir}}/{{apk}}.zip
|
|
- name: check whether {{apk}}.apk exists
|
|
shell: cd {{root_dir}} && [ -f {{apk}}.apk ]
|
|
ignore_errors: true
|
|
register: result
|
|
- name: remove old {{apk}}.apk.bak
|
|
shell: cd {{root_dir}} && rm -f {{apk}}.apk.bak
|
|
- name: create current {{apk}}.apk.bak
|
|
shell: cd {{root_dir}} && mv {{apk}}.apk {{apk}}.apk.bak
|
|
when: result is succeeded
|
|
- name: unzip new {{apk}}.zip
|
|
shell: cd {{root_dir}} && unzip -o -qq {{apk}}.zip && rm -f {{apk}}.zip
|
|
|