Move task to earlier stages, so that hostname is setup before all other things.