diff --git a/Aktubinsk_install_config/hosts b/Aktubinsk_install_config/hosts index 3821ec3..991f833 100644 --- a/Aktubinsk_install_config/hosts +++ b/Aktubinsk_install_config/hosts @@ -34,7 +34,8 @@ #[app_global] #[server-as-tun-mode] #p -#[adc_mxn] +[adc_mxn] +10.2.55.[1:49] [adc_mcn0] 10.2.51.[1:49] [adc_mcn1] diff --git a/Almaty_install_config/hosts b/Almaty_install_config/hosts index 63cde73..8da6dd5 100644 --- a/Almaty_install_config/hosts +++ b/Almaty_install_config/hosts @@ -34,7 +34,8 @@ #[app_global] #[server-as-tun-mode] #p -#[adc_mxn] +[adc_mxn] +10.3.55.[1:113] [adc_mcn0] 10.3.51.[1:113] [adc_mcn1] diff --git a/Kyzylorda_install_config/hosts b/Kyzylorda_install_config/hosts index 62abb57..520a107 100644 --- a/Kyzylorda_install_config/hosts +++ b/Kyzylorda_install_config/hosts @@ -34,7 +34,8 @@ #[app_global] #[server-as-tun-mode] #p -#[adc_mxn] +[adc_mxn] +10.9.55.[1:15] [adc_mcn0] 10.9.51.[1:15] [adc_mcn1] diff --git a/NurSultan_install_config/hosts b/NurSultan_install_config/hosts index 27f0517..2d6f89e 100644 --- a/NurSultan_install_config/hosts +++ b/NurSultan_install_config/hosts @@ -35,21 +35,22 @@ #[server-as-tun-mode] [adc_mxn] +10.4.55.[1:78] [adc_mcn0] -10.4.51.[1:20] -10.4.51.[23:52] -10.4.51.[55:78] +#10.4.51.22 +#10.4.51.[53:54] +10.4.51.[1:78] [adc_mcn1] -10.4.52.[1:20] -10.4.52.[23:52] -10.4.52.[55:78] +#10.4.52.22 +#10.4.52.[53:54] +10.4.52.[1:78] [adc_mcn2] -10.4.53.[1:20] -10.4.53.[23:52] -10.4.53.[55:78] +#10.4.53.22 +#10.4.53.[53:54] +10.4.53.[1:78] [adc_mcn3] -10.4.54.[1:20] -10.4.54.[23:52] -10.4.54.[55:78] +#10.4.54.22 +#10.4.54.[53:54] +10.4.54.[1:78] [packet_dump_server] 10.4.61.3 diff --git a/reboot_adc.yml b/reboot_adc.yml new file mode 100644 index 0000000..ccf172d --- /dev/null +++ b/reboot_adc.yml @@ -0,0 +1,4 @@ +- hosts: adc_mxn + remote_user: root + roles: + - reboot-all-adc diff --git a/roles/reboot-all-adc/tasks/main.yml b/roles/reboot-all-adc/tasks/main.yml new file mode 100644 index 0000000..5ab9492 --- /dev/null +++ b/roles/reboot-all-adc/tasks/main.yml @@ -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