diff --git a/runansible b/runansible index 18ef12420..8b8e616ad 100755 --- a/runansible +++ b/runansible @@ -13,6 +13,32 @@ if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then fi cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact +STAGE="" + +if [ -f /etc/iiab/iiab.env ] +then + OLD=`grep XSCE /etc/iiab/iiab.env | wc -l` + if [ "$OLD" != 0 ] + then + rm /etc/iiab/iiab.env + else + source /etc/iiab/iiab.env + if [ ! $STAGE == 9 ] + then + echo "Restarting STAGE=$STAGE" + fi + if [ $STAGE == 9 ] + then + # place keeper + echo "offer 'Y' dialog box and --debug option to override" + echo "need to rewrite STAGE= before ansible is called" + # exit 0 + fi + fi +else + mkdir -p /etc/iiab +fi + if [ ! -f $PLAYBOOK ] then echo "IIAB Playbook not found."