ansible/roles/apk/tasks/revert_apk.yml
2021-08-28 23:54:41 +08:00

10 lines
281 B
YAML

---
- name: check whether {{apk}}.apk.bak exists
shell: cd {{root_dir}} && [ -f {{apk}}.apk.bak ]
ignore_errors: true
register: result
- name: revert {{apk}}.apk.bak
when: result is succeeded
shell: cd {{root_dir}} && rm -f {{apk}}.apk && mv {{apk}}.apk.bak {{apk}}.apk