Run a task on host A then skip to host B, then return to host A to finish task

Hi

please help

Without any context it is hard to say, but you may be looking for
delegate_to (
http://docs.ansible.com/ansible/playbooks_delegation.html#delegation)

Based on the information provided I’d say delegate_to is exactly what you need.