This commit is contained in:
zhangzhihan
2020-09-25 15:10:14 +08:00
parent b57e742be8
commit 5aba47de31
10 changed files with 120 additions and 31 deletions

View File

@@ -4,11 +4,18 @@
state: directory
ignore_errors: true
- name: "optMESA_{{ uninstall_version }}_{{ date }}.zip exist?"
shell: "ls {{ backup_dest_path }}/optMESA_{{ uninstall_version }}_{{ date }}.zip"
register: optMESA_directory
ignore_errors: true
- name: "backup /opt/MESA to destination path"
archive:
path: /opt/MESA
dest: "{{ backup_dest_path }}/optMESA_{{ uninstall_version }}_{{ date }}.zip"
format: zip
when: backup.framework == 1
when:
- optMESA_directory.rc != 0
- backup.framework == 1
ignore_errors: true