This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/uninstall/roles/backup_framework_config/tasks/main.yml
2020-10-24 12:08:31 +06:00

22 lines
611 B
YAML

- name: "create backup_dest_path"
file:
path: "{{ backup_dest_path }}"
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:
- optMESA_directory.rc != 0
- backup.framework == 1
ignore_errors: true