update
This commit is contained in:
21
uninstall/roles/backup_tfe_config/tasks/main.yml
Normal file
21
uninstall/roles/backup_tfe_config/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: "create backup_dest_path"
|
||||
file:
|
||||
path: "{{ backup_dest_path }}"
|
||||
state: directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup /opt/tsg/tfe/conf to destination path"
|
||||
archive:
|
||||
path: /opt/tsg/tfe/conf
|
||||
dest: "{{ backup_dest_path }}/tfe_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when: backup.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup /opt/tsg/env to destination path"
|
||||
archive:
|
||||
path: /opt/tsg/env
|
||||
dest: "{{ backup_dest_path }}/tsg_env_1_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when: backup.tsg_env == 1
|
||||
ignore_errors: true
|
||||
Reference in New Issue
Block a user