def METHOD_NAME(
    module_org,
    module_location,
    module_ak_with_synced_repo,
    module_target_sat,
    module_capsule_configured,
    rhel_contenthost,
):
    """Verify content host registration with global registration
    :id: b6cd60ba-8069-11ed-ac61-83315855d126
    :steps:
        1. Register host with global registration template to Satellite and Capsule
    :expectedresults: Host registered successfully
    :BZ: 2156926
    :customerscenario: true
    """
    result = rhel_contenthost.register(
        module_org, module_location, module_ak_with_synced_repo.name, module_target_sat
    )
    rc = 1 if rhel_contenthost.os_version.major == 6 else 0
    assert result.status == rc, f'Failed to register host: {result.stderr}'
    # Verify server.hostname and server.port from subscription-manager config
    assert module_target_sat.hostname == rhel_contenthost.subscription_config['server']['hostname']
    assert CLIENT_PORT == rhel_contenthost.subscription_config['server']['port']
    # Update module_capsule_configured to include module_org/module_location
    module_target_sat.cli.Capsule.update(
        {
            'name': module_capsule_configured.hostname,
            'organization-ids': module_org.id,
            'location-ids': module_location.id,
        }
    )
    result = rhel_contenthost.register(
        module_org,
        module_location,
        module_ak_with_synced_repo.name,
        module_capsule_configured,
        force=True,
    )
    rc = 1 if rhel_contenthost.os_version.major == 6 else 0
    assert result.status == rc, f'Failed to register host: {result.stderr}'
    # Verify server.hostname and server.port from subscription-manager config
    assert (
        module_capsule_configured.hostname
        == rhel_contenthost.subscription_config['server']['hostname']
    )
    assert CLIENT_PORT == rhel_contenthost.subscription_config['server']['port']