def METHOD_NAME(
    session,
    module_host_group,
    default_location,
    default_org,
    oscap_content_path,
    import_ansible_roles,
):
    """Create OpenScap Policy which is connected to the host. That policy
    dashboard should be rendered and correctly display information about
    the host
    :id: 3c1575cb-f290-4d99-bb86-61b9ca6a62eb
    :customerscenario: true
    :Steps:
        1. Create new host group
        2. Create new host using host group from step 1
        3. Create an openscap content.
        4. Create an openscap Policy using host group from step 1
    :expectedresults: Policy dashboard rendered properly and has necessary
        data
    :BZ: 1424936
    :CaseLevel: Integration
    """
    name = gen_string('alpha')
    oscap_content_title = gen_string('alpha')
    lce = entities.LifecycleEnvironment(organization=default_org).create()
    content_view = entities.ContentView(organization=default_org).create()
    content_view.publish()
    content_view = content_view.read()
    content_view.version[0].promote(data={'environment_ids': lce.id})
    entities.Host(
        hostgroup=module_host_group,
        location=default_location,
        organization=default_org,
        content_facet_attributes={
            'content_view_id': content_view.id,
            'lifecycle_environment_id': lce.id,
        },
    ).create()
    entities.ScapContents(
        title=oscap_content_title,
        scap_file=oscap_content_path,
        organization=[default_org],
        location=[default_location],
    ).create()
    with session:
        session.organization.select(org_name=default_org.name)
        session.location.select(loc_name=default_location.name)
        session.oscappolicy.create(
            {
                'deployment_options.deploy_by': 'ansible',
                'policy_attributes.name': name,
                'scap_content.scap_content_resource': oscap_content_title,
                'scap_content.xccdf_profile': OSCAP_PROFILE['security7'],
                'schedule.period': 'Weekly',
                'schedule.period_selection.weekday': 'Friday',
                'locations.resources.assigned': [default_location.name],
                'organizations.resources.assigned': [default_org.name],
                'host_group.resources.assigned': [module_host_group.name],
            }
        )
        policy_details = session.oscappolicy.details(name)
        assert policy_details['HostsBreakdownStatus']['total_count'] == 1
        # Skipping this assertion for now because of some UI changes.
        # assert policy_details['HostBreakdownChart']['hosts_breakdown'] == '100%Not audited'