update
This commit is contained in:
@@ -4,11 +4,18 @@
|
|||||||
state: directory
|
state: directory
|
||||||
ignore_errors: true
|
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"
|
- name: "backup /opt/MESA to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/MESA
|
path: /opt/MESA
|
||||||
dest: "{{ backup_dest_path }}/optMESA_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/optMESA_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.framework == 1
|
when:
|
||||||
|
- optMESA_directory.rc != 0
|
||||||
|
- backup.framework == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,17 @@
|
|||||||
state: directory
|
state: directory
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "mrzcpd_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/mrzcpd_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: mrzcpd_directory
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup /opt/mrzcpd to destination path"
|
- name: "backup /opt/mrzcpd to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/mrzcpd
|
path: /opt/mrzcpd
|
||||||
dest: "{{ backup_dest_path }}/mrzcpd_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/mrzcpd_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.marsio == 1
|
when:
|
||||||
|
- mrzcpd_directory.rc != 0
|
||||||
|
- backup.marsio == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|||||||
@@ -4,12 +4,39 @@
|
|||||||
state: directory
|
state: directory
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "sapp_etc_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/sapp_etc_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: sapp_etc
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "sapp_plug_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: sapp_plug
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: sapp_tsgconf
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "sapp_appconf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/sapp_appconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: sapp_appconf
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "sapp_conf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/sapp_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: sapp_conf
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup sapp_run/etc to destination path"
|
- name: "backup sapp_run/etc to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /home/mesasoft/sapp_run/etc
|
path: /home/mesasoft/sapp_run/etc
|
||||||
dest: "{{ backup_dest_path }}/sapp_etc_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/sapp_etc_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.sapp_etc == 1
|
when:
|
||||||
|
- sapp_etc.rc != 0
|
||||||
|
- backup.sapp_etc == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup sapp_run/plug to destination path"
|
- name: "backup sapp_run/plug to destination path"
|
||||||
@@ -17,7 +44,9 @@
|
|||||||
path: /home/mesasoft/sapp_run/plug
|
path: /home/mesasoft/sapp_run/plug
|
||||||
dest: "{{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.sapp_plug == 1
|
when:
|
||||||
|
- sapp_plug.rc != 0
|
||||||
|
- backup.sapp_plug == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup sapp_run/tsgconf/ to destination path"
|
- name: "backup sapp_run/tsgconf/ to destination path"
|
||||||
@@ -25,7 +54,9 @@
|
|||||||
path: /home/mesasoft/sapp_run/tsgconf
|
path: /home/mesasoft/sapp_run/tsgconf
|
||||||
dest: "{{ backup_dest_path }}/sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.sapp_tsgconf == 1
|
when:
|
||||||
|
- sapp_tsgconf.rc != 0
|
||||||
|
- backup.sapp_tsgconf == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup sapp_run/appconf/ to destination path"
|
- name: "backup sapp_run/appconf/ to destination path"
|
||||||
@@ -33,7 +64,9 @@
|
|||||||
path: /home/mesasoft/sapp_run/appconf
|
path: /home/mesasoft/sapp_run/appconf
|
||||||
dest: "{{ backup_dest_path }}/sapp_appconf_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/sapp_appconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.sapp_appconf == 1
|
when:
|
||||||
|
- sapp_appconf.rc != 0
|
||||||
|
- backup.sapp_appconf == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup sapp_run/conf/ to destination path"
|
- name: "backup sapp_run/conf/ to destination path"
|
||||||
@@ -41,7 +74,9 @@
|
|||||||
path: /home/mesasoft/sapp_run/conf
|
path: /home/mesasoft/sapp_run/conf
|
||||||
dest: "{{ backup_dest_path }}/sapp_conf_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/sapp_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.sapp_conf == 1
|
when:
|
||||||
|
- sapp_conf.rc != 0
|
||||||
|
- backup.sapp_conf == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,18 +4,17 @@
|
|||||||
state: directory
|
state: directory
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "tfe_conf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/tfe_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: tfeconf_directory
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup /opt/tsg/tfe/conf to destination path"
|
- name: "backup /opt/tsg/tfe/conf to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/tsg/tfe/conf
|
path: /opt/tsg/tfe/conf
|
||||||
dest: "{{ backup_dest_path }}/tfe_conf_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/tfe_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.tfe == 1
|
when:
|
||||||
ignore_errors: true
|
- tfeconf_directory.rc != 0
|
||||||
|
- backup.tfe == 1
|
||||||
- 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
|
ignore_errors: true
|
||||||
|
|||||||
@@ -4,10 +4,17 @@
|
|||||||
state: directory
|
state: directory
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "tsg_env_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||||
|
shell: "ls {{ backup_dest_path }}/tsg_env_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
|
register: tsgenv_directory
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "backup /opt/tsg/env to destination path"
|
- name: "backup /opt/tsg/env to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/tsg/env
|
path: /opt/tsg/env
|
||||||
dest: "{{ backup_dest_path }}/tsg_env_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/tsg_env_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.tsg_env == 1
|
when:
|
||||||
|
- tsgenv_directory.rc != 0
|
||||||
|
- backup.tsg_env == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|||||||
@@ -9,6 +9,18 @@
|
|||||||
- uninstall.firewall == 1
|
- uninstall.firewall == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "[uninstall firewall] create /home/mesasoft/sapp_runetc/"
|
||||||
|
file:
|
||||||
|
path: /home/mesasoft/sapp_runetc/
|
||||||
|
state: directory
|
||||||
|
when: uninstall.firewall == 1
|
||||||
|
|
||||||
|
- name: "[uninstall firewall] create entrylist.conf"
|
||||||
|
file:
|
||||||
|
path: /home/mesasoft/sapp_runetc/entrylist.conf
|
||||||
|
state: touch
|
||||||
|
when: uninstall.firewall == 1
|
||||||
|
|
||||||
- name: "[uninstall firewall] uninstall firewall"
|
- name: "[uninstall firewall] uninstall firewall"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
- name: "[uninstall framework] create project_list.conf"
|
||||||
|
file:
|
||||||
|
path: /home/mesasoft/sapp_run/etc/project_list.conf
|
||||||
|
state: touch
|
||||||
|
when: uninstall.framework == 1
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "[uninstall framework] create conflist.inf"
|
||||||
|
file:
|
||||||
|
path: /home/mesasoft/sapp_run/plug/conflist.inf
|
||||||
|
state: touch
|
||||||
|
when: uninstall.framework == 1
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "[uninstall framework] uninstall framework"
|
- name: "[uninstall framework] uninstall framework"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
|
|||||||
@@ -47,14 +47,17 @@
|
|||||||
when: remove.telegraf_statistic == 1
|
when: remove.telegraf_statistic == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "remove certstore files"
|
- name: "remove /home/tsg/certstore files"
|
||||||
file:
|
file:
|
||||||
path: "{{ certstore_path }}"
|
path: /home/tsg/certstore
|
||||||
|
state: absent
|
||||||
|
when: remove.certstore == 1
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "remove /opt/tsg/certstore files"
|
||||||
|
file:
|
||||||
|
path: /opt/tsg/certstore
|
||||||
state: absent
|
state: absent
|
||||||
vars:
|
|
||||||
certstore_path:
|
|
||||||
- /home/tsg/certstore
|
|
||||||
- /opt/tsg/certstore
|
|
||||||
when: remove.certstore == 1
|
when: remove.certstore == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
@@ -65,14 +68,17 @@
|
|||||||
when: remove.certstore == 1
|
when: remove.certstore == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "remove cert-redis files"
|
- name: "remove /opt/tsg/cert-redis files"
|
||||||
file:
|
file:
|
||||||
path: "{{ certredis_path }}"
|
path: /opt/tsg/cert-redis
|
||||||
|
state: absent
|
||||||
|
when: remove.certredis == 1
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: "remove /home/tsg/cert-redis files"
|
||||||
|
file:
|
||||||
|
path: /home/tsg/cert-redis
|
||||||
state: absent
|
state: absent
|
||||||
vars:
|
|
||||||
certredis_path:
|
|
||||||
- /home/tsg/certstore
|
|
||||||
- /opt/tsg/certstore
|
|
||||||
when: remove.certredis == 1
|
when: remove.certredis == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ uninstall_version: 20.09
|
|||||||
####################
|
####################
|
||||||
#Backup
|
#Backup
|
||||||
backup_dest_path: /root/backup_data
|
backup_dest_path: /root/backup_data
|
||||||
date: 20200921
|
date: 20200925
|
||||||
backup:
|
backup:
|
||||||
tsg_env: 1
|
tsg_env: 1
|
||||||
marsio: 1
|
marsio: 1
|
||||||
@@ -45,6 +45,8 @@ remove:
|
|||||||
sapp: 1
|
sapp: 1
|
||||||
tfe: 1
|
tfe: 1
|
||||||
clotho: 1
|
clotho: 1
|
||||||
|
certstore: 1
|
||||||
|
certredis: 1
|
||||||
http_healthcheck: 1
|
http_healthcheck: 1
|
||||||
telegraf_statistic: 1
|
telegraf_statistic: 1
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,6 @@
|
|||||||
#10.3.74.1
|
#10.3.74.1
|
||||||
#10.3.75.1
|
#10.3.75.1
|
||||||
[uninstall_server]
|
[uninstall_server]
|
||||||
172.16.124.134
|
192.168.40.225
|
||||||
[uninstall_adc_mcn0]
|
[uninstall_adc_mcn0]
|
||||||
[uninstall_adc_mcn123]
|
[uninstall_adc_mcn123]
|
||||||
|
|||||||
Reference in New Issue
Block a user