Cast the retrieved `retries` var to an int before incrementing as it may be in string form.

For example, the following method of calculating the value will result in a type error:

    appstatus_waitfor: 4  # Minutes
    appstatus_delay: 5 # seconds
    appstatus_retries: "{{ mins * 60 / delay }}"
Merge pull request #5212 from tarka/devel

Cast the retrieved `retries` var to an int before incrementing as it may...
Fix issue #5214: hostname persistence on RedHat/CentOS
Fix link to playbooks loops
Merge pull request #5217 from mmoya/docfix

Fix link to playbooks loops
apt: update index before trying to autoinstall python-apt
Merge pull request #5215 from dhml/devel

Fix issue #5214: hostname persistence on RedHat/CentOS
Merge pull request #5222 from resmo/fix/apt-update

apt: update index before trying to autoinstall python-apt