mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Add sleep 5 secs in retry loop
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
a3f702c45e
commit
4cad83c264
1 changed files with 2 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ function retry
|
||||||
return ${result}
|
return ${result}
|
||||||
fi
|
fi
|
||||||
echo "@* -> ${result}"
|
echo "@* -> ${result}"
|
||||||
|
sleep 5
|
||||||
done
|
done
|
||||||
echo "Command '@*' failed 3 times!"
|
echo "Command '@*' failed 3 times!"
|
||||||
exit 255
|
exit 255
|
||||||
|
|
@ -74,7 +75,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# START: HACK install dependencies
|
# START: HACK install dependencies
|
||||||
#retry ansible-galaxy collection install community.general
|
retry ansible-galaxy collection install community.general
|
||||||
# END: HACK
|
# END: HACK
|
||||||
|
|
||||||
export PYTHONIOENCODING='utf-8'
|
export PYTHONIOENCODING='utf-8'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue