def METHOD_NAME(
    session, module_org, smart_proxy_location, module_rhel_client_by_ip
):
    """Run a job template on a host connected by ip
    :id: 9a90aa9a-00b4-460e-b7e6-250360ee8e4d
    :Setup: Use pre-defined job template.
    :Steps:
        1. Set remote_execution_connect_by_ip on host to true
        2. Navigate to an individual host and click Run Job
        3. Select the job and appropriate template
        4. Run the job
    :expectedresults: Verify the job was successfully ran against the host
    :parametrized: yes
    :CaseLevel: System
    """
    hostname = module_rhel_client_by_ip.hostname
    with session:
        session.organization.select(module_org.name)
        session.location.select(smart_proxy_location.name)
        assert session.host.search(hostname)[0]['Name'] == hostname
        session.jobinvocation.run(
            {
                'job_category': 'Commands',
                'job_template': 'Run Command - Script Default',
                'search_query': f'name ^ {hostname}',
                'template_content.command': 'ls',
            }
        )
        session.jobinvocation.wait_job_invocation_state(entity_name='Run ls', host_name=hostname)
        status = session.jobinvocation.read(entity_name='Run ls', host_name=hostname)
        assert status['overview']['hosts_table'][0]['Status'] == 'success'