def _run_playbook_for(playbook, hosts, service, cwd=None, ignore_errors=False):
    return _run_playbook_impl(
        playbook,
        lambda inv: base.get_component_hosts_on_nodes(inv, service, hosts),
        cwd=cwd,
        ignore_errors=ignore_errors
    )