1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

iiab-install - don't repeat prior roles that completed successfully within a stage

This commit is contained in:
Jerry Vonau 2019-10-25 12:32:06 -05:00
parent 2243cd6d9a
commit 3d321be92a
2 changed files with 9 additions and 0 deletions

View file

@ -175,6 +175,14 @@ if [ -f /etc/iiab/config_vars2.yml ]; then
## End image catch up
fi
# allow iiab-install to read IIAB_STATE_FILE to not repeat installs of previous
# roles that already completed within the stage.
if [ ! -f $IIAB_STATE_FILE ]; then
if [ ! -d /etc/iiab ]; then
mkdir /etc/iiab/
fi
touch $IIAB_STATE_FILE
fi
echo -e "\nTRY TO RERUN './iiab-install' IF IT FAILS DUE TO CONNECTIVITY ISSUES ETC!\n"
echo -e "Running local Ansible playbooks...\n...Stage 0 will now run\n...followed by Stages $(($STAGE + 1))-9\n...and then the Network Role.\n"

View file

@ -7,6 +7,7 @@
- vars/default_vars.yml
- vars/{{ ansible_local.local_facts.os_ver }}.yml
- /etc/iiab/local_vars.yml
- /etc/iiab/iiab_state.yml
tasks: