mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update iiab-network
This commit is contained in:
parent
69a7b2abc5
commit
e931603441
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@ if [ ! -f /etc/iiab/config_vars.yml ]; then
|
|||
echo "{}" > /etc/iiab/config_vars.yml
|
||||
fi
|
||||
|
||||
OS="unknown" # will be overridden below, if /etc/iiab/iiab.env is legit
|
||||
OS="unknown" # will be overridden below, if /etc/iiab/iiab.env is legit
|
||||
if [ -f /etc/iiab/iiab.env ]; then
|
||||
source /etc/iiab/iiab.env
|
||||
fi
|
||||
|
@ -25,6 +25,7 @@ Start=`date`
|
|||
ansible-playbook -i ansible_hosts iiab-network.yml --connection=local
|
||||
End=`date`
|
||||
|
||||
# Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log
|
||||
echo "" >> iiab-network.log
|
||||
# redhat path
|
||||
if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then
|
||||
|
@ -44,7 +45,7 @@ echo "run end: $End" >> iiab-network.log
|
|||
echo "" >> iiab-network.log
|
||||
echo "" >> iiab-network.log
|
||||
|
||||
# Put the same stuff on screen, for live operator
|
||||
# Put the same diagnostics on screen, for live operator
|
||||
ip r
|
||||
brctl show
|
||||
echo "run start: $Start"
|
||||
|
|
Loading…
Add table
Reference in a new issue