From 659c870198b5ef28f2d06ed7c694424dfed1edc4 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 28 Oct 2017 14:52:20 -0500 Subject: [PATCH] add restarting feedback and marker for completed --- runansible | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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."