def METHOD_NAME(local_host):
    try:
        with ctx_config.use(state.config.copy()):
            with ctx_host.use(local_host):
                callback()
                logger.info(
                    "{0}{1} {2}".format(
                        local_host.print_prefix,
                        click.style("Ready:", "green"),
                        click.style(name, bold=True),
                    ),
                )
    except Exception as e:
        return e