1. add adc_mxn section

2.  add reboot-all-adc role
This commit is contained in:
fumingwei
2020-11-05 17:47:45 +06:00
parent 247460820b
commit d80cc9f220
6 changed files with 32 additions and 15 deletions

View File

@@ -34,7 +34,8 @@
#[app_global] #[app_global]
#[server-as-tun-mode] #[server-as-tun-mode]
#p #p
#[adc_mxn] [adc_mxn]
10.2.55.[1:49]
[adc_mcn0] [adc_mcn0]
10.2.51.[1:49] 10.2.51.[1:49]
[adc_mcn1] [adc_mcn1]

View File

@@ -34,7 +34,8 @@
#[app_global] #[app_global]
#[server-as-tun-mode] #[server-as-tun-mode]
#p #p
#[adc_mxn] [adc_mxn]
10.3.55.[1:113]
[adc_mcn0] [adc_mcn0]
10.3.51.[1:113] 10.3.51.[1:113]
[adc_mcn1] [adc_mcn1]

View File

@@ -34,7 +34,8 @@
#[app_global] #[app_global]
#[server-as-tun-mode] #[server-as-tun-mode]
#p #p
#[adc_mxn] [adc_mxn]
10.9.55.[1:15]
[adc_mcn0] [adc_mcn0]
10.9.51.[1:15] 10.9.51.[1:15]
[adc_mcn1] [adc_mcn1]

View File

@@ -35,21 +35,22 @@
#[server-as-tun-mode] #[server-as-tun-mode]
[adc_mxn] [adc_mxn]
10.4.55.[1:78]
[adc_mcn0] [adc_mcn0]
10.4.51.[1:20] #10.4.51.22
10.4.51.[23:52] #10.4.51.[53:54]
10.4.51.[55:78] 10.4.51.[1:78]
[adc_mcn1] [adc_mcn1]
10.4.52.[1:20] #10.4.52.22
10.4.52.[23:52] #10.4.52.[53:54]
10.4.52.[55:78] 10.4.52.[1:78]
[adc_mcn2] [adc_mcn2]
10.4.53.[1:20] #10.4.53.22
10.4.53.[23:52] #10.4.53.[53:54]
10.4.53.[55:78] 10.4.53.[1:78]
[adc_mcn3] [adc_mcn3]
10.4.54.[1:20] #10.4.54.22
10.4.54.[23:52] #10.4.54.[53:54]
10.4.54.[55:78] 10.4.54.[1:78]
[packet_dump_server] [packet_dump_server]
10.4.61.3 10.4.61.3

4
reboot_adc.yml Normal file
View File

@@ -0,0 +1,4 @@
- hosts: adc_mxn
remote_user: root
roles:
- reboot-all-adc

View File

@@ -0,0 +1,9 @@
- name: "reboot adc"
shell: "{{ item }}"
ignore_errors: true
with_items:
- ssh 192.168.100.1 reboot
- ssh 192.168.100.1 reboot
- ssh 192.168.100.1 reboot
- ssh 192.168.100.1 reboot
- reboot