Whether or not the HOA can step in and evict you if your landlord improperly rents out his unit is a matter of contract between him and the HOA. You would have to check the agreements he signed or agreed to upon purchase.