Note: this is an unclean backport.
When a deployment fails, we run the playbooks to generate horizon URL &
RC files anyway. However it is confusing to have them at the end, after
the actual trace and an operator with a small screen won't see the
actual errors easily.
Let's just move these actions before the config download execution,
which has no impact anyway; but will improve logging a lot.
(cherry picked from commit