This commit is contained in:
zhangzhihan
2020-09-25 15:24:41 +08:00
parent 5aba47de31
commit 03b37a86d8
5 changed files with 26 additions and 3 deletions

View File

@@ -79,6 +79,17 @@
roles: roles:
- tsg-diagnose_stop_sync - tsg-diagnose_stop_sync
- hosts:
- adc_mcn0
- adc_mcn1
- adc_mcn2
- adc_mcn3
remote_user: root
roles:
- reboot
vars_files:
- install_config/group_vars/adc_global.yml
- hosts: server-as-tun-mode - hosts: server-as-tun-mode
remote_user: root remote_user: root
vars_files: vars_files:
@@ -101,6 +112,7 @@
- telegraf_statistic - telegraf_statistic
- proxy_status - proxy_status
# - tsg_device_tag # - tsg_device_tag
- reboot
- hosts: app_global - hosts: app_global
remote_user: root remote_user: root

View File

@@ -4,6 +4,10 @@ tsg_access_type: 3
#####2: ADC; #####2: ADC;
tsg_running_type: 2 tsg_running_type: 2
########################################
#Deploy_finished_reboot
Deploy_finished_reboot: 1
######################################## ########################################
#IP Config #IP Config
maat_redis_server: maat_redis_server:

View File

@@ -4,6 +4,10 @@ tsg_access_type: 1
#####0: Tun_mode; 1: normal; #####0: Tun_mode; 1: normal;
tsg_running_type: 1 tsg_running_type: 1
########################################
#Deploy_finished_reboot
Deploy_finished_reboot: 1
######################################## ########################################
#Server Basic Config #Server Basic Config
nic_mgr: nic_mgr:

View File

@@ -40,6 +40,6 @@
- tsg_access_type == 4 - tsg_access_type == 4
- t_kernel_ml.changed - t_kernel_ml.changed
- name: "reboot" #- name: "reboot"
reboot: # reboot:
when: t_kernel_ml.changed # when: t_kernel_ml.changed

View File

@@ -0,0 +1,3 @@
- name: "reboot"
reboot:
when: Deploy_finished_reboot == 1