Hi
Frankly I'm not sure if this is a good solution (or if it even works, though I don't see why not). So my suggestion would be to have your local Ansible stuff (playbook, roles, etc.) install Ansible on Host A and push the playbooks etc. that you need to configure Host B onto Host A. In that way your Host A is to Host B what your local Computer is to Host A.
Hope that helps, regards,
Cyril