mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +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}
|
||||
fi
|
||||
echo "@* -> ${result}"
|
||||
sleep 5
|
||||
done
|
||||
echo "Command '@*' failed 3 times!"
|
||||
exit 255
|
||||
|
|
@ -74,7 +75,7 @@ else
|
|||
fi
|
||||
|
||||
# START: HACK install dependencies
|
||||
#retry ansible-galaxy collection install community.general
|
||||
retry ansible-galaxy collection install community.general
|
||||
# END: HACK
|
||||
|
||||
export PYTHONIOENCODING='utf-8'
|
||||
|
|
|
|||
Loading…
Reference in a new issue