First commit, at K18-2 Control Center.

This commit is contained in:
k18ceiec
2020-10-24 12:08:31 +06:00
commit dc9336ae26
223 changed files with 7222 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
- 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