mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
add restarting feedback and marker for completed
This commit is contained in:
parent
daa9f4074e
commit
659c870198
1 changed files with 26 additions and 0 deletions
26
runansible
26
runansible
|
@ -13,6 +13,32 @@ if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then
|
||||||
fi
|
fi
|
||||||
cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
|
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 ]
|
if [ ! -f $PLAYBOOK ]
|
||||||
then
|
then
|
||||||
echo "IIAB Playbook not found."
|
echo "IIAB Playbook not found."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue