Addressing too many hosts in a single run seems to cause hangs.
This commit is contained in:
parent
fe35721438
commit
573e381b5e
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ find_outdated(){
|
|||
ipa="$(sed -nE "s|^.+default via.+ src ($r) metric.+|\1|p" "$file" | head -1)"
|
||||
echo -ne "\n Outdated '$ipa': $file"
|
||||
fi
|
||||
hlist="$hlist,$ipa"
|
||||
## limit number of hosts addressed in one ansible run:
|
||||
[[ n -lt 30 ]] && hlist="$hlist,$ipa"
|
||||
n=$(( n + 1 ))
|
||||
if [[ $(date --date="$d" +%s) -lt $(date --date="$git_date" +%s) ]] ; then
|
||||
## ansible run needed at least on one machine, run it on all:
|
||||
|
|
Loading…
Add table
Reference in a new issue