update
This commit is contained in:
@@ -90,6 +90,7 @@ mrtunnat:
|
|||||||
lcore_id: 40,41,42,43
|
lcore_id: 40,41,42,43
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#Tsg-app
|
#Tsg_app
|
||||||
tsg-app_enable: 1
|
#0: Disable tsg_app 1: Enable tsg_app
|
||||||
|
tsg_app_enable: 1
|
||||||
|
|
||||||
|
|||||||
@@ -104,8 +104,9 @@ mrtunnat:
|
|||||||
lcore_id: 38
|
lcore_id: 38
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#Tsg-app
|
#Tsg_app
|
||||||
tsg-app_enable: 0
|
#0: Disable tsg_app 1: Enable tsg_app
|
||||||
|
tsg_app_enable: 0
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#ATCA Config
|
#ATCA Config
|
||||||
|
|||||||
@@ -27,9 +27,6 @@
|
|||||||
- /tmp/ansible_deploy/ssl-1.0.8.0068bd9-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/ssl-1.0.8.0068bd9-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/tsg_conn_record-1.0.2.2afb19a-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/tsg_conn_record-1.0.2.2afb19a-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/tsg_conn_sketch-2.0.v2.0_alpha.af621ca-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/tsg_conn_sketch-2.0.v2.0_alpha.af621ca-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/app_control_plug-1.0.2.a724506-2.el7.x86_64.rpm
|
|
||||||
- /tmp/ansible_deploy/app_sketch_local-1.0.2.fd63c68-2.el7.x86_64.rpm
|
|
||||||
- /tmp/ansible_deploy/app_master-1.0.4.d189dee-2.el7.x86_64.rpm
|
|
||||||
|
|
||||||
- name: "Template the tsgconf/main.conf"
|
- name: "Template the tsgconf/main.conf"
|
||||||
template:
|
template:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#./plug/platform/http_healthcheck/http_healthcheck.inf
|
#./plug/platform/http_healthcheck/http_healthcheck.inf
|
||||||
{% endif %}
|
{% endif %}
|
||||||
./plug/platform/tsg_master/tsg_master.inf
|
./plug/platform/tsg_master/tsg_master.inf
|
||||||
{% if tsg-app_enable == 1 %}
|
{% if tsg_app_enable == 1 %}
|
||||||
./plug/platform/app_master/app_master.inf
|
./plug/platform/app_master/app_master.inf
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
./plug/business/tsg_conn_record/tsg_conn_record.inf
|
./plug/business/tsg_conn_record/tsg_conn_record.inf
|
||||||
./plug/business/tsg_conn_sketch/tsg_conn_sketch.inf
|
./plug/business/tsg_conn_sketch/tsg_conn_sketch.inf
|
||||||
./plug/business/capture_packet_plug/capture_packet_plug.inf
|
./plug/business/capture_packet_plug/capture_packet_plug.inf
|
||||||
{% if tsg-app_enable == 1 %}
|
{% if tsg_app_enable == 1 %}
|
||||||
./plug/business/app_sketch_local/app_sketch_local.inf
|
./plug/business/app_sketch_local/app_sketch_local.inf
|
||||||
./plug/business/app_control_plug/app_control_plug.inf
|
./plug/business/app_control_plug/app_control_plug.inf
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: stop cert-redis
|
- name: "[certredis after 20.09] stop cert-redis"
|
||||||
systemd:
|
systemd:
|
||||||
name: cert-redis
|
name: cert-redis
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
when: uninstall.certredis == 1
|
when: uninstall.certredis == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: remove cert-redis files
|
- name: "[certredis after 20.09] remove cert-redis files"
|
||||||
file:
|
file:
|
||||||
path: /opt/tsg/cert-redis
|
path: /opt/tsg/cert-redis
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: stop cert-redis
|
- name: "[certredis before 20.09] stop cert-redis"
|
||||||
systemd:
|
systemd:
|
||||||
name: cert-redis
|
name: cert-redis
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
when: uninstall.certredis == 1
|
when: uninstall.certredis == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: remove cert-redis files
|
- name: "[certredis before 20.09] remove cert-redis files"
|
||||||
file:
|
file:
|
||||||
path: /home/tsg/cert-redis
|
path: /home/tsg/cert-redis
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: stop certstore
|
- name: "[certstore after 20.09] stop certstore"
|
||||||
systemd:
|
systemd:
|
||||||
name: certstore
|
name: certstore
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -8,33 +8,33 @@
|
|||||||
- uninstall.certstore == 1
|
- uninstall.certstore == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[certstore after 20.09] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.certstore == 1
|
when: backup.certstore == 1
|
||||||
|
|
||||||
- name: backup /opt/tsg/certstore to destination path
|
- name: "[certstore after 20.09] backup /opt/tsg/certstore to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/tsg/certstore
|
path: /opt/tsg/certstore
|
||||||
dest: "{{ backup_dest_path }}/certstore_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/certstore_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.certstore == 1
|
when: backup.certstore == 1
|
||||||
|
|
||||||
- name: uninstall certstore
|
- name: "[certstore after 20.09] uninstall certstore"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ certstore }}"
|
- "{{ certstore }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.certstore == 1
|
when: uninstall.certstore == 1
|
||||||
|
|
||||||
- name: remove certstore files
|
- name: "[certstore after 20.09] remove certstore files"
|
||||||
file:
|
file:
|
||||||
path: /opt/tsg/certstore
|
path: /opt/tsg/certstore
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.certstore == 1
|
when: remove.certstore == 1
|
||||||
|
|
||||||
- name: remove certstore.service
|
- name: "[certstore after 20.09] remove certstore.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/certstore.service
|
path: /usr/lib/systemd/system/certstore.service
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: stop certstore
|
- name: "[certstore before 20.09] stop certstore"
|
||||||
systemd:
|
systemd:
|
||||||
name: certstore
|
name: certstore
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -8,33 +8,33 @@
|
|||||||
- uninstall.certstore == 1
|
- uninstall.certstore == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[certstore before 20.09] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.certstore == 1
|
when: backup.certstore == 1
|
||||||
|
|
||||||
- name: backup /home/tsg/certstore to destination path
|
- name: "[certstore before 20.09] backup /home/tsg/certstore to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /home/tsg/certstore
|
path: /home/tsg/certstore
|
||||||
dest: "{{ backup_dest_path }}/certstore_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/certstore_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.certstore == 1
|
when: backup.certstore == 1
|
||||||
|
|
||||||
- name: uninstall certstore
|
- name: "[certstore before 20.09] uninstall certstore"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ certstore }}"
|
- "{{ certstore }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.certstore == 1
|
when: uninstall.certstore == 1
|
||||||
|
|
||||||
- name: remove certstore files
|
- name: "[certstore before 20.09] remove certstore files"
|
||||||
file:
|
file:
|
||||||
path: /home/tsg/certstore
|
path: /home/tsg/certstore
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.certstore == 1
|
when: remove.certstore == 1
|
||||||
|
|
||||||
- name: remove certstore.service
|
- name: "[certstore before 20.09] remove certstore.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/certstore.service
|
path: /usr/lib/systemd/system/certstore.service
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
- name: create backup_dest_path
|
- name: "[framework after 20.09] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.framework == 1
|
when: backup.framework == 1
|
||||||
|
|
||||||
- name: backup /home/tsg/certstore to destination path
|
- name: "[framework after 20.09] backup /home/tsg/certstore to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/MESA
|
path: /opt/MESA
|
||||||
dest: "{{ backup_dest_path }}/opt_MESA_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/opt_MESA_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.framework == 1
|
when: backup.framework == 1
|
||||||
|
|
||||||
- name: uninstall framework
|
- name: "[framework after 20.09] uninstall framework"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ libcjson }}"
|
- "{{ libcjson }}"
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: uninstall.framework == 1
|
when: uninstall.framework == 1
|
||||||
|
|
||||||
- name: remove framework files
|
- name: "[framework after 20.09] remove framework files"
|
||||||
file:
|
file:
|
||||||
path: /opt/MESA
|
path: /opt/MESA
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
- name: create backup_dest_path
|
- name: "[framework before 20.09] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.framework == 1
|
when: backup.framework == 1
|
||||||
|
|
||||||
- name: backup /opt/MESA to destination path
|
- name: "[framework before 20.09] backup /home/tsg/certstore to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /opt/MESA
|
path: /opt/MESA
|
||||||
dest: "{{ backup_dest_path }}/opt_MESA_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/opt_MESA_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.framework == 1
|
when: backup.framework == 1
|
||||||
|
|
||||||
- name: uninstall framework
|
- name: "[framework before 20.09] uninstall framework"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ libcjson }}"
|
- "{{ libcjson }}"
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: uninstall.framework == 1
|
when: uninstall.framework == 1
|
||||||
|
|
||||||
- name: remove framework files
|
- name: "[framework before 20.09] remove framework files"
|
||||||
file:
|
file:
|
||||||
path: /opt/MESA
|
path: /opt/MESA
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
####################
|
####################
|
||||||
#Uninstall Kernel
|
#Uninstall Kernel
|
||||||
- name: "reset default kernel"
|
- name: "[uninstall kernel] reset default kernel"
|
||||||
shell: grub2-set-default '{{ origin_kernel }}'
|
shell: grub2-set-default '{{ origin_kernel }}'
|
||||||
when: uninstall.kernel == 1
|
when: uninstall.kernel == 1
|
||||||
|
|
||||||
- name: "reboot"
|
- name: "[uninstall kernel] reboot"
|
||||||
reboot:
|
reboot:
|
||||||
when: uninstall.kernel == 1
|
when: uninstall.kernel == 1
|
||||||
|
|
||||||
- name: "uninstall tfe-kmod and kernel"
|
- name: "[uninstall kernel] uninstall tfe-kmod and kernel"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ tfe_kmod }}"
|
- "{{ tfe_kmod }}"
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall Marsio
|
#Uninstall Marsio
|
||||||
- name: stop mrzcpd
|
- name: "[uninstall marsio] stop mrzcpd"
|
||||||
systemd:
|
systemd:
|
||||||
name: mrzcpd
|
name: mrzcpd
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
- uninstall.marsio == 1
|
- uninstall.marsio == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: stop mrtunnat
|
- name: "[uninstall marsio] stop mrtunnat"
|
||||||
systemd:
|
systemd:
|
||||||
name: mrtunnat
|
name: mrtunnat
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -43,39 +43,39 @@
|
|||||||
- uninstall.marsio == 1
|
- uninstall.marsio == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[uninstall marsio] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.marsio == 1
|
when: backup.marsio == 1
|
||||||
|
|
||||||
- name: backup /opt/mrzcpd to destination path
|
- name: "[uninstall marsio] 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: backup.marsio == 1
|
||||||
|
|
||||||
- name: uninstall mrzcpd
|
- name: "[uninstall marsio] uninstall mrzcpd"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ mrzcpd }}"
|
- "{{ mrzcpd }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.marsio == 1
|
when: uninstall.marsio == 1
|
||||||
|
|
||||||
- name: remove marsio files
|
- name: "[uninstall marsio] remove marsio files"
|
||||||
file:
|
file:
|
||||||
path: /opt/mrzcpd
|
path: /opt/mrzcpd
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.marsio == 1
|
when: remove.marsio == 1
|
||||||
|
|
||||||
- name: remove mrzcpd.service
|
- name: "[uninstall marsio] remove mrzcpd.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/mrzcpd.service
|
path: /usr/lib/systemd/system/mrzcpd.service
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.marsio == 1
|
when: remove.marsio == 1
|
||||||
|
|
||||||
- name: remove mrtunnat.service
|
- name: "[uninstall marsio] remove mrtunnat.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/mrtunnat.service
|
path: /usr/lib/systemd/system/mrtunnat.service
|
||||||
state: absent
|
state: absent
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall kni
|
#Uninstall kni
|
||||||
- name: stop sapp
|
- name: "[uninstall kni] stop sapp"
|
||||||
systemd:
|
systemd:
|
||||||
name: sapp
|
name: sapp
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -93,46 +93,46 @@
|
|||||||
- uninstall.kni == 1
|
- uninstall.kni == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[uninstall kni] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.kni == 1
|
when: backup.kni == 1
|
||||||
|
|
||||||
- name: backup sapp_run/etc/kni/ to destination path
|
- name: "[uninstall kni] backup sapp_run/etc/kni/ to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /home/mesasoft/sapp_run/etc/kni
|
path: /home/mesasoft/sapp_run/etc/kni
|
||||||
dest: "{{ backup_dest_path }}/kni_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/kni_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.kni == 1
|
when: backup.kni == 1
|
||||||
|
|
||||||
- name: backup sapp_run/plug to destination path
|
- name: "[uninstall kni] backup sapp_run/plug to destination path"
|
||||||
archive:
|
archive:
|
||||||
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: backup.sapp_plug == 1
|
||||||
|
|
||||||
- name: "judge plug.zip"
|
- name: "[uninstall kni] judge plug.zip"
|
||||||
shell: "ls {{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
shell: "ls {{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
register: return
|
register: return
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: uninstall kni
|
- name: "[uninstall kni] uninstall kni"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ kni }}"
|
- "{{ kni }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.kni == 1
|
when: uninstall.kni == 1
|
||||||
|
|
||||||
- name: remove kni files
|
- name: "[uninstall kni] remove kni files"
|
||||||
file:
|
file:
|
||||||
path: /home/mesasoft/sapp_run/etc/kni/
|
path: /home/mesasoft/sapp_run/etc/kni/
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.kni == 1
|
when: remove.kni == 1
|
||||||
####################
|
####################
|
||||||
#Tsg-app
|
#Tsg-app
|
||||||
- name: stop sapp
|
- name: "[uninstall tsg-app] stop sapp"
|
||||||
systemd:
|
systemd:
|
||||||
name: sapp
|
name: sapp
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
- uninstall.tsg_app == 1
|
- uninstall.tsg_app == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: uninstall tsg_app
|
- name: "[uninstall tsg-app] uninstall tsg_app"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ app_sketch_local }}"
|
- "{{ app_sketch_local }}"
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall tsg_master
|
#Uninstall tsg_master
|
||||||
- name: stop sapp
|
- name: "[uninstall tsg_master] stop sapp"
|
||||||
systemd:
|
systemd:
|
||||||
name: sapp
|
name: sapp
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -165,20 +165,20 @@
|
|||||||
- uninstall.tsgmaster == 1
|
- uninstall.tsgmaster == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[uninstall tsg_master] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.sapp_tsgconf == 1
|
when: backup.sapp_tsgconf == 1
|
||||||
|
|
||||||
- name: backup sapp_run/tsgconf/ to destination path
|
- name: "[uninstall tsg_master] backup sapp_run/tsgconf/ to destination path"
|
||||||
archive:
|
archive:
|
||||||
path: /home/mesasoft/sapp_run/tsgconf
|
path: /home/mesasoft/sapp_run/tsgconf
|
||||||
dest: "{{ backup_dest_path }}/tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
dest: "{{ backup_dest_path }}/tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||||
format: zip
|
format: zip
|
||||||
when: backup.sapp_tsgconf == 1
|
when: backup.sapp_tsgconf == 1
|
||||||
|
|
||||||
- name: backup sapp_run/plug to destination path
|
- name: "[uninstall tsg_master] backup sapp_run/plug to destination path"
|
||||||
archive:
|
archive:
|
||||||
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"
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
- backup.sapp_plug == 1
|
- backup.sapp_plug == 1
|
||||||
- return.rc != 0
|
- return.rc != 0
|
||||||
|
|
||||||
- name: uninstall tsg_master
|
- name: "[uninstall tsg_master] uninstall tsg_master"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ tsg_master }}"
|
- "{{ tsg_master }}"
|
||||||
@@ -196,7 +196,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall firewall
|
#Uninstall firewall
|
||||||
- name: stop sapp
|
- name: "[uninstall firewall] stop sapp"
|
||||||
systemd:
|
systemd:
|
||||||
name: sapp
|
name: sapp
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -206,32 +206,32 @@
|
|||||||
- uninstall.firewall == 1
|
- uninstall.firewall == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[uninstall firewall] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.sapp_conf == 1
|
when: backup.sapp_conf == 1
|
||||||
|
|
||||||
- name: create /home/mesasoft/sapp_runetc/
|
- name: "[uninstall firewall] create /home/mesasoft/sapp_runetc/"
|
||||||
file:
|
file:
|
||||||
path: /home/mesasoft/sapp_runetc/
|
path: /home/mesasoft/sapp_runetc/
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.sapp_conf == 1
|
when: backup.sapp_conf == 1
|
||||||
|
|
||||||
- name: create entrylist.conf
|
- name: "[uninstall firewall] create entrylist.conf"
|
||||||
file:
|
file:
|
||||||
path: /home/mesasoft/sapp_runetc/entrylist.conf
|
path: /home/mesasoft/sapp_runetc/entrylist.conf
|
||||||
state: touch
|
state: touch
|
||||||
when: backup.sapp_conf == 1
|
when: backup.sapp_conf == 1
|
||||||
|
|
||||||
- name: backup sapp_run/conf/ to destination path
|
- name: "[uninstall firewall] backup sapp_run/conf/ to destination path"
|
||||||
archive:
|
archive:
|
||||||
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: backup.sapp_conf == 1
|
||||||
|
|
||||||
- name: backup sapp_run/plug to destination path
|
- name: "[uninstall firewall] backup sapp_run/plug to destination path"
|
||||||
archive:
|
archive:
|
||||||
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"
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
- backup.sapp_plug == 1
|
- backup.sapp_plug == 1
|
||||||
- return.rc != 0
|
- return.rc != 0
|
||||||
|
|
||||||
- name: uninstall firewall
|
- name: "[uninstall firewall] uninstall firewall"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ capture_packet_plug }}"
|
- "{{ capture_packet_plug }}"
|
||||||
@@ -259,7 +259,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: uninstall.firewall == 1
|
when: uninstall.firewall == 1
|
||||||
|
|
||||||
- name: uninstall firewall
|
- name: "[uninstall firewall] uninstall firewall"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ fw_quic }}"
|
- "{{ fw_quic }}"
|
||||||
@@ -268,7 +268,7 @@
|
|||||||
when: uninstall.firewall == 1
|
when: uninstall.firewall == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: remove /home/mesasoft/sapp_runetc
|
- name: "[uninstall firewall] remove /home/mesasoft/sapp_runetc"
|
||||||
file:
|
file:
|
||||||
path: /home/mesasoft/sapp_runetc
|
path: /home/mesasoft/sapp_runetc
|
||||||
state: absent
|
state: absent
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall sapp
|
#Uninstall sapp
|
||||||
- name: stop sapp
|
- name: "[uninstall sapp] stop sapp"
|
||||||
systemd:
|
systemd:
|
||||||
name: sapp
|
name: sapp
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -286,20 +286,20 @@
|
|||||||
- uninstall.sapp == 1
|
- uninstall.sapp == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[uninstall sapp] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.sapp_etc == 1
|
when: backup.sapp_etc == 1
|
||||||
|
|
||||||
- name: backup sapp_run/etc to destination path
|
- name: "[uninstall sapp] 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: backup.sapp_etc == 1
|
||||||
|
|
||||||
- name: uninstall sapp
|
- name: "[uninstall sapp] uninstall sapp"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ sapp }}"
|
- "{{ sapp }}"
|
||||||
@@ -317,7 +317,7 @@
|
|||||||
# - backup.sapp_etc == 1
|
# - backup.sapp_etc == 1
|
||||||
# - backup.sapp_conf == 1
|
# - backup.sapp_conf == 1
|
||||||
|
|
||||||
- name: remove sapp.service
|
- name: "[uninstall sapp] remove sapp.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/sapp.service
|
path: /usr/lib/systemd/system/sapp.service
|
||||||
state: absent
|
state: absent
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall tfe
|
#Uninstall tfe
|
||||||
- name: stop tfe
|
- name: "[uninstall tfe] stop tfe"
|
||||||
systemd:
|
systemd:
|
||||||
name: tfe
|
name: tfe
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -335,7 +335,7 @@
|
|||||||
- uninstall.tfe == 1
|
- uninstall.tfe == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: stop tfe-env
|
- name: "[uninstall tfe] stop tfe-env"
|
||||||
systemd:
|
systemd:
|
||||||
name: tfe-env
|
name: tfe-env
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -345,45 +345,45 @@
|
|||||||
- uninstall.tfe == 1
|
- uninstall.tfe == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: create backup_dest_path
|
- name: "[uninstall tfe] create backup_dest_path"
|
||||||
file:
|
file:
|
||||||
path: "{{ backup_dest_path }}"
|
path: "{{ backup_dest_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: backup.tfe == 1
|
when: backup.tfe == 1
|
||||||
|
|
||||||
- name: backup /opt/tsg/tfe/conf to destination path
|
- name: "[uninstall tfe] 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: backup.tfe == 1
|
||||||
|
|
||||||
- name: uninstall tfe
|
- name: "[uninstall tfe] uninstall tfe"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ tfe }}"
|
- "{{ tfe }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.tfe == 1
|
when: uninstall.tfe == 1
|
||||||
|
|
||||||
- name: remove /opt/tsg/tfe
|
- name: "[uninstall tfe] remove /opt/tsg/tfe"
|
||||||
file:
|
file:
|
||||||
path: /opt/tsg/tfe
|
path: /opt/tsg/tfe
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.tfe == 1
|
when: remove.tfe == 1
|
||||||
|
|
||||||
- name: remove tfe.service
|
- name: "[uninstall tfe] remove tfe.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/tfe.service
|
path: /usr/lib/systemd/system/tfe.service
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.tfe == 1
|
when: remove.tfe == 1
|
||||||
|
|
||||||
- name: remove tfe-env.service
|
- name: "[uninstall tfe] remove tfe-env.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/tfe-env.service
|
path: /usr/lib/systemd/system/tfe-env.service
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.tfe == 1
|
when: remove.tfe == 1
|
||||||
|
|
||||||
- name: remove tfe-env-tun-mode.service
|
- name: "[uninstall tfe] remove tfe-env-tun-mode.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/tfe-env-tun-mode.service
|
path: /usr/lib/systemd/system/tfe-env-tun-mode.service
|
||||||
state: absent
|
state: absent
|
||||||
@@ -411,7 +411,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall clotho
|
#Uninstall clotho
|
||||||
- name: stop clotho
|
- name: "[uninstall clotho] stop clotho"
|
||||||
systemd:
|
systemd:
|
||||||
name: clotho
|
name: clotho
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -419,20 +419,20 @@
|
|||||||
when: uninstall.clotho == 1
|
when: uninstall.clotho == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: uninstall clotho
|
- name: "[uninstall clotho] uninstall clotho"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ clotho }}"
|
- "{{ clotho }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.clotho == 1
|
when: uninstall.clotho == 1
|
||||||
|
|
||||||
- name: remove clotho files
|
- name: "[uninstall clotho] remove clotho files"
|
||||||
file:
|
file:
|
||||||
path: /home/mesasoft/clotho
|
path: /home/mesasoft/clotho
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.clotho == 1
|
when: remove.clotho == 1
|
||||||
|
|
||||||
- name: remove clotho.service
|
- name: "[uninstall clotho] remove clotho.service"
|
||||||
file:
|
file:
|
||||||
path: /usr/lib/systemd/system/clotho.service
|
path: /usr/lib/systemd/system/clotho.service
|
||||||
state: absent
|
state: absent
|
||||||
@@ -440,14 +440,14 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall http_healthcheck
|
#Uninstall http_healthcheck
|
||||||
- name: uninstall http_healthcheck
|
- name: "[uninstall http_healthcheck] uninstall http_healthcheck"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ http_healthcheck }}"
|
- "{{ http_healthcheck }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.http_healthcheck == 1
|
when: uninstall.http_healthcheck == 1
|
||||||
|
|
||||||
- name: remove http_healthcheck files
|
- name: "[uninstall http_healthcheck] remove http_healthcheck files"
|
||||||
file:
|
file:
|
||||||
path: /home/mesasoft/http_healthcheck
|
path: /home/mesasoft/http_healthcheck
|
||||||
state: absent
|
state: absent
|
||||||
@@ -465,7 +465,7 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
#Uninstall telegraf_statistic
|
#Uninstall telegraf_statistic
|
||||||
- name: stop telegraf_statistic
|
- name: "[uninstall telegraf_statistic] stop telegraf_statistic"
|
||||||
systemd:
|
systemd:
|
||||||
name: telegraf_statistic
|
name: telegraf_statistic
|
||||||
state: stopped
|
state: stopped
|
||||||
@@ -473,20 +473,20 @@
|
|||||||
when: uninstall.telegraf_statistic == 1
|
when: uninstall.telegraf_statistic == 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: uninstall telegraf_statistic
|
- name: "[uninstall telegraf_statistic] uninstall telegraf_statistic"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ telegraf_statistic }}"
|
- "{{ telegraf_statistic }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: uninstall.telegraf_statistic == 1
|
when: uninstall.telegraf_statistic == 1
|
||||||
|
|
||||||
- name: remove telegraf_statistic files
|
- name: "[uninstall telegraf_statistic] remove telegraf_statistic files"
|
||||||
file:
|
file:
|
||||||
path: /etc/telegraf/telegraf_statistic.conf
|
path: /etc/telegraf/telegraf_statistic.conf
|
||||||
state: absent
|
state: absent
|
||||||
when: remove.telegraf_statistic == 1
|
when: remove.telegraf_statistic == 1
|
||||||
|
|
||||||
- name: remove /tmp/metrics.out
|
- name: "[uninstall telegraf_statistic] remove /tmp/metrics.out"
|
||||||
file:
|
file:
|
||||||
path: /tmp/metrics.out
|
path: /tmp/metrics.out
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ backup:
|
|||||||
####################
|
####################
|
||||||
#Uninstall list
|
#Uninstall list
|
||||||
uninstall:
|
uninstall:
|
||||||
kernel: 0
|
kernel: 1
|
||||||
framework: 1
|
framework: 1
|
||||||
marsio: 1
|
marsio: 1
|
||||||
sapp: 1
|
sapp: 1
|
||||||
@@ -34,9 +34,9 @@ uninstall:
|
|||||||
clotho: 1
|
clotho: 1
|
||||||
http_healthcheck: 1
|
http_healthcheck: 1
|
||||||
telegraf_statistic: 1
|
telegraf_statistic: 1
|
||||||
tsg_env_tun_mode: 0
|
tsg_env_tun_mode: 1
|
||||||
tsg_app: 1
|
tsg_app: 1
|
||||||
tsg_diagnose: 1
|
tsg_diagnose: 0
|
||||||
|
|
||||||
####################
|
####################
|
||||||
#Remove list
|
#Remove list
|
||||||
|
|||||||
@@ -13,5 +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
|
||||||
[uninstall_adc_mcn0]
|
[uninstall_adc_mcn0]
|
||||||
[uninstall_adc_mcn123]
|
[uninstall_adc_mcn123]
|
||||||
|
|||||||
Reference in New Issue
Block a user