#!/bin/bash if [ -f /etc/iiab/iiab.env ] then . /etc/iiab/iiab.env cd $IIAB_DIR else echo /etc/iiab/iiab.env is missing. Playbook has not been run. exit 1 fi CWD=`pwd` if [ ! -f iiab-network.yml ] then echo "IIAB Playbook not found." echo "Please run this command from the top level of the git repo." echo "Exiting." exit fi if [ ! -f /etc/iiab/config_vars.yml ] then touch /etc/iiab/config_vars.yml fi Start=`date` export ANSIBLE_LOG_PATH="$XSCE_DIR/iiab-network.log" ansible-playbook -i ansible_hosts iiab-network.yml --connection=local End=`date` echo "" >> iiab-network.log if [ ! "OS" == "debian" ]; then ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log nmcli d >> iiab-network.log nmcli c >> iiab-network.log fi echo "" >> iiab-network.log ip r >> iiab-network.log echo "" >> iiab-network.log brctl show br0>> iiab-network.log echo "run start: $Start" >> iiab-network.log echo "run end: $End" >> iiab-network.log echo "" >> iiab-network.log echo "" >> iiab-network.log ip r brctl show br0 echo "run start:$Start" echo "run end: $End"